A permanent link to an item (a blog post, an attachment, ...). The default structure is "?p=123", but WordPress can handle "pretty permalinks" and will rewrite them internally to the former version. If you have a question about special rewrite structures you should use the [url-rewriting] tag.

learn more… | top users | synonyms (1)

6
votes
1answer
956 views

Permalink not working for page without title

I am testing a Wordpress theme using the Wordpress Theme Unit Test test data. One of the test posts has no title. Wordpress generates a permalink of the form: <my-site>/posts/14/ (my ...
0
votes
1answer
179 views

Hide the word 'category' from my permalinks

How can I hide the word 'category' from my permalinks? Regards.
4
votes
2answers
6k views

How to get permalink and title from post ID?

I have stored an array of post IDs and I would like to list the posts as links, meaning I need to get the title and permalink for the post ID - $id. The list should be echoed out by the following if ...
0
votes
1answer
177 views

Plugin for TinyMCE to create reference to other posts

Is there any plugin that would allow me to easily insert reference to another post for TinyMCE? I want to be able to reference another post by permalink and the link text to be the title of the post. ...
1
vote
1answer
148 views

Making permalinks to /%postname%/ by default in installation

I am making a custom wordpress distribution I will use for my own sites including my language and a child theme. But, I want the permalinks to be /%postname%/ by default so that I don't need to change ...
4
votes
1answer
1k views

Passing variables through permalink structure

I have a WordPress page which is accessible via /accommodation/. What I want to be able to do is pass in a parameter using the URL - ie going to /accommodation/value1/ would load the same page as ...
2
votes
3answers
358 views

Must permalinks always point to single post pages?

Suppose that I have a blog with few posts per month, and no comments, and I don't want to show posts in single post pages, but always "in context" (say, together with the posts in its month - or ...
0
votes
2answers
1k views

Multiple sites with pretty permalinks with nginx

I'm trying to set up a new local development server and instead of Apache I've decided to go with nginx. What I'd like to do is have each WordPress site live within its own directory inside ...
2
votes
1answer
3k views

Custom post type permalink endpoint

I have a custom post type called "destinations" and I have set the EP mask for the post type to default EP_PERMALINK. I have added a couple of endpoints as follows : add_filter( 'query_vars', ...
4
votes
5answers
3k views

Remove slug in taxonomy url

Just wondering, how can remove slugs from some URLS. I'm using a custom post type called exhibitors, and some taxonomies to define those exhibitors (eg: featured-guests, publishers etc.): Right now ...
0
votes
1answer
103 views

Stop Attachment image names from taking top level permalink

I don't know why but images uploaded to my site in posts are getting a top level permalink. So if I upload an image into a post called "Apple" then it gets an attachment page at mysite.com/apple and ...
1
vote
1answer
153 views

menu link to custom post_type?

is there a way to add a custom post_type (directors) link to a menu? I can add the individual director posts but not the link to all of them. I'd like to avoid using custom links as this will be ...
0
votes
1answer
56 views

Wordpress switch servers

So I switched servers from localhost:8080 to a domain, now I followed the instructions by updating the config, and updating the permalinks and everything. Even updated the database. I can go into my ...
0
votes
1answer
43 views

Word Press Permalink Change

I had the following permalink structure in my WordPress blog: /%category%/%post-name%/ I changed it to: /%post-name%/ Everything is fine as I am using the permalink finder plugin, which ...
0
votes
3answers
719 views

hiding permalink in admin if the user is subscriber

I don't want to show the permalink if the user is subscriber. Can anyone help me to achieve that? PS: I'm talking about the permalink which appears below title while creating new post. PPS: I ...
3
votes
2answers
749 views

How to get the clean permalink in a draft?

When I use the_permalink or get_the_permalink in a draft or scheduled post, the URL provided is not the "final" permalink—it is the unpretty ?p=xxxxx version. How can I get the final, "clean" ...
0
votes
1answer
1k views

WP-e-commerce (getshopped) - Annoying permalink issue

i’m using wp-ecommerce (getshopped) and WPML on a website, all pages display correctly when i use the default (/ugly…) permalink structure, but when i try to use the much desired permalink structure ...
2
votes
2answers
7k views

Using $_GET variables in the URL?

I need to generate a simple error message on a page by passing a variable through the URL. The URL is structured as follows: http://site.com/parent-category/category/?error=pause I'm sure it's the ...
3
votes
1answer
363 views

Permalinks all messed up, I am helpless [closed]

Today I tried to make the Permalinks of my Wordpress site more SEO friendly. I got it working for all links, except the ones linking to a custom post type page. I Googled the problem and found out ...
0
votes
2answers
298 views

Changed permalink structure of CPT - should I redirect?

Following this answer, I recently changed the permalink structure of a custom post type called 'Literature' to include the taxonomy term: Old structure: mysite.com/literature/books/post_name New ...
2
votes
1answer
68 views

What Defines What Category A Post Picks (if in multiple)

If I have a post in multiple categories, what defines what category shows up in the URL? Assuming I have permalinks setup as /%category%/%postname% is it the ID or the name?
1
vote
2answers
102 views

How to show only blog-domain instead of the whole permalink in the loop

I wanna show the blog URL instead of the whole post URL in my loop. The reason is that I use Wordpress multiblog with sitewide tags, so on my front-page of the main blog I'm showing the 10 last ...
0
votes
1answer
260 views

How to include first assigned category in the post URL?

What are the options for creating URLs like: site.com/category-name/post-name Where, "category-name" is the first category that the post was assigned to (in the event that the post is assigned to ...
2
votes
2answers
2k views

Why does a custom post type need the ''hierarchical' args setting?

I'm struggling with understanding some things about CPTs and and could do with some help. I can see that taxonomies often need to be hierarchical, but can't see how/when a custom post type would be? ...
0
votes
1answer
1k views

Problems with Wordpress in subfolder, posts show a blank page

I have wordpress installed in a subfolder and using permalinks but I'm getting a blank page when I try to access to any post. This is what I have in the root folder .htaccess: RewriteEngine On ...
0
votes
1answer
347 views

Change permalink in wp-property

I have set default property page so in the property url it shows /lima-investments/property-name. But I want to remove /lima-investments from the url. I want to change following url ...
0
votes
2answers
204 views

Lists Top Authors by Most Recent Posts

I'm trying to display a table format of the top authors listed by the most recent posts. It should display the author, its avatar, the date, and the title of the post (with a link). I have it ...
0
votes
1answer
536 views

Echo Permalink in Attachment outside of loop?

I have some code showing an image attached to a post, an image in a li list, works fine shows the image as its should. I need the image to link through its main single post though and have tried the ...
7
votes
1answer
3k views

Shouldn't this be easy?! Custom post type/custom taxonomy permalink

So this is driving me absolutely insane. I've spend days trying to fix this and I can't work out why this is so difficult as surely this is a very common permalink structure! I looked through ...
5
votes
3answers
388 views

Prevent Wordpress from abbreviating-long-slugs…-in-the-admin

On post edit pages, when a slug exceeds a certain number of characters, Wordpress abridges it with an ellipsis (...). For example, if my slug is i-want-to-be-able-to-see-this-slug, it appears on the ...
3
votes
0answers
62 views

Add /demo/ slug with rewrite rule [duplicate]

Possible Duplicate: Add extra parameters after permalink? I need to add a slug to every post. Current permalinks http://www.my-domain.com/2012/01/01/my-post-title/ or ...
1
vote
1answer
242 views

Can I create permalinks like this: /%post_type%/%postname%/

I've been learning about custom post types from Morten Rand-Hendriksen's great tutorial on making a WordPress portfolio theme on lynda.com. He demos how to set up a custom taxonomy for "recipes" and ...
0
votes
1answer
1k views

Custom permalink with child taxonomy terms

This may ressemble other questions, but i'm posting my own as I couldn't find a conclusive answer that worked for me. What you need to know I have a custom post type (products), with a custom ...
22
votes
2answers
19k views

How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name

I've been combing this site and google for the answer and I've come up completely empty. Basically I want to do exactly what this post asks, but I need a hierarchical taxonomy. The answer given in ...
0
votes
1answer
102 views

mod-rewrite rules grabs “broken permalinks”, too

This is the automatically generated htaccess file of WP using permalinks for the pattern /%year%/%postname%/ (working with http://localhost/BLOG-FOLDER/ yet): <IfModule mod_rewrite.c> ...
5
votes
2answers
416 views

Archive permalinks

This site has been very helpful for me in learning how to rewrite permalinks using add_filters to solve issues we were having when we merged two blogs into one. But, I do have one item I have been ...
5
votes
3answers
614 views

Taxonomy term in permalink

I have a big problem. I have been banging my head on this all day long. It seems to be a stupid easy question. Possibly also with a stupid easy answer. But I can't seem to find it. What I want is ...
1
vote
1answer
158 views

conditional statement for active permalinks

I'm looking for a way to create an if...else statement hinging on whether pretty permalinks are active or not. So I need something which returns true when permalinks are changed from the default. if ...
1
vote
1answer
28 views

Confusing about permalink

I'm nubie in WP and I have some problems but the annoying for me is the default permalink. When tried to visit my site from top of the dashboard link, it says "mydomain.com/home" instead mydomain.com. ...
0
votes
1answer
866 views

Custom JSON feed rewrite

I'm trying to implement a feed of information from an Event custom post type in JSON format, to be used in a FullCalendar implementation, pretty much as described here. The one thing I wanted to ...
0
votes
1answer
85 views

How do I hide posts in a category from all listings but still allow the posts to be viewed?

Let's say I have a category named "Hidden". I'd like to prevent all posts in "Hidden" from appearing within The Loop on the main blog listing page. Also, I'd like to prevent those posts from ...
1
vote
1answer
336 views

Do the permalink settings apply to pages as well as posts?

I want to have all my blog posts have the structure http://mysite/blog/blogarticle1 but I want the pages to have the structure http://mysite/page1 (no "blog" in there). I see how to include "blog" in ...
0
votes
1answer
628 views

Change permalink for custom post type?

I have a page called Food which displays posts from 2 custom post types - Recipes and Restaurants. How do I add 'food' to the permalink just for those two custom post types? - e.g. ...
0
votes
2answers
1k views

remove permalink trailing slash

I need to use the_permalink() in order to construct a simple link from each post . the link should be like http://www.mysite.com/category/year/post-name?output=something.. I use ?output=something" ...
2
votes
2answers
2k views

Custom permalink structure only for default posts

Does anybody know how to modify the url struct only for the single post page? When I go to a post page, the url should look like: example.com/xxx/my-post. All other urls (with the exception of the ...
1
vote
1answer
348 views

Is it possible to list post attachments in a sub URL endpoint with a dedicated template?

Wordpress provides templates for displaying media attached to a post or page (attachment.php and more). They're also displayed with nice permalinks, such as: ...
9
votes
5answers
4k views

Wordpress 3.3 custom post type with /%postname%/ permastruct?

There is earlier post with similar title, but it does not look in to the WordPress 3.3, and that is important as 3.3 advertises interestingly: "Use the postname permalink structure without a ...
3
votes
1answer
3k views

“.#[random-char-string]” being inserted at end of URLs

I've seen this on a couple of sites now and I'm having trouble finding information about (probably because it's awkward to describe): All internal URLs like this for example: ...
0
votes
2answers
584 views

WordPress Multisite Permalinks on mapped domain = server 404 error

I am setting up a multiblog. In sub-blogs that mapped on a different domain, permalinks work with only "default" values. They broke if set to other valid values. My main domain name is abc.com I have ...
1
vote
1answer
311 views

filtering special chars from post slug

Is there a way to prevent WordPress from including special characters like – (long dash), ", ', etc.. from the post slugs? Basically, I'd like to run the post-slug through a filter when it is ...