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.
16
votes
4answers
4k views
Custom post types, taxonomies, and permalinks
This is driving me nuts and I'm sure it's simple but nothing I search for comes up with a simple structure (everything is very complex).
I have a custom post type "product_listing" and a custom ...
10
votes
2answers
4k 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 ...
13
votes
1answer
9k views
Need help with add_rewrite_rule
SOLUTION
I've gone with Update 3 and have got it working. What I had misunderstood, was that I believed that a rewrite rule would change designers/?designer=some-designer&bid=9 to ...
5
votes
2answers
1k views
Add extra parameters after permalink?
How can I add extra parameters after a permalink, specifically if I'm using a custom post type?
For example, let's say http://mysite/album/record-name was the permalink. How can I make ...
12
votes
2answers
5k views
Mixing custom post type and taxonomy rewrite structures?
Basically I want to achieve a glossary using custom post types and have some issues setting up rewrites the way I want them to be. I want it like that:
The main glossary URL:
...
10
votes
7answers
5k views
Remove taxonomy slug from a custom hierarchical taxonomy permalink
I created a 'forum' taxonomy, using these rules:
register_taxonomy(
'forum',
array('topic'),
array(
'public' => true,
'name' => _a('Forums'),
'singular_name' => ...
1
vote
1answer
2k views
Remove parent category from permalink? Basically only have the child category?
I think there used to be an out-dated plugin to do this. Is there any way to do this easily with just a little code? We prefer not to rely on a plugin since that makes us dependent on the developer ...
14
votes
3answers
1k views
Adding categories to custom post type in permalink
I know people have asked this before and have gone as far as adding the custom post type, and rewrite for permalink.
The problem is I have 340 existing categories which I would like to continue ...
5
votes
1answer
6k views
Passing and retrieving query vars in wordpress
I have two authors pages, one displays about 5 posts. Then I'm trying to setup another page that will be all of their posts. I have created a template called moreauthorposts.php and I'm trying to ...
3
votes
3answers
1k views
Need help with friendly URL's in Wordpress
I'm creating som custom templates in Wordpress and I'm passing some data in the URL's.
Currently my URL looks like this:
http://www.mysite.com/designers/?id=43&name=designer+name
The URL ...
2
votes
2answers
1k views
Filtering categories in the permalink structure
Using /%category%/%postname%/ for the permalink I get a URL string of all the categories that the specific post is included in.
I would like the categories in the url to be filtered down to only one ...
3
votes
1answer
1k views
Pretty URL with add_query_var
I'm trying to add a 'sub post' to each post on my site, eg
site.com/product-one/changelog
site.com/product-two/changelog
site.com/product-three/changelog
This is the code I'm using atm, which I ...
5
votes
1answer
343 views
Rewrite Rule for Multilingual Website, Like qTranslate?
I would like to write my own little plugin for language switching. For that, the very first thing would be to get the rewrite rules running. I have been looking around the web for 2 hours, but I ...
2
votes
2answers
320 views
Getting archive pages in WP's AJAX internal link finder?
I often need to link to custom taxonomy term archive pages and would love to be able to do so through the AJAX internal link navigator added to the visual editor in 3.1. Is there any way to get this ...
1
vote
1answer
4k views
Rewriting a custom-post-type permalink with taxonomy term?
I'm trying to rewrite my url for a custom_post_type named wr_events with one of its custom_taxonomy terms from event_type
add_action('init', 'wr_events');
function wr_events() {
...
1
vote
2answers
2k views
Permalinks in Custom Post types
Is it possible for a custom post type to have a permalink as domain.com/custom-slug/ instead of domain.com/custom/custom-slug/?
I can't seem to achieve it. rewrite argument while registering it ...
2
votes
2answers
2k 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 ...
2
votes
1answer
3k views
Permalink rewrite 404 conflict- WordPress Taxonomies/ CPT
Wondering if someone could tell me why sub pages (child pages) no longer work (eg: www.mysite.com/type/childpage).
I have a page called "Type" (working fine), and I wish to have Child Pages of "Type" ...
2
votes
2answers
1k views
%tag% in permalink not working
I use custom permalink structure:
/%tag%/%postname%/
and it is not working. I get url - http://mydomain.com/%tag%/post/. So there is no tag name, just %tag%. If i place %category% instead ot %tag%, ...
0
votes
2answers
1k views
paginate_links() don't properly work in search.php?
I'm using this in my search.php template …
<div class="pagination">
<?php echo get_pagination_links(); ?>
</div>
And this is the function …
function get_pagination_links() {
...
5
votes
5answers
3k 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 ...
10
votes
3answers
513 views
Performance of my permalink structure?
I have read the discussion on the performance of different permalinks on the wp hackers mailinglist, THIS forum and around Google.
I could however not really deduce if the permalink structure I have ...
6
votes
1answer
1k 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 ...
4
votes
3answers
1k views
Add .html (dot HTML) extension to custom post types
Is there any way to add the .html extension to custom post types without plugin ?
For posts I can use /%postname.html on the permalink settings
For pages I can use:
add_action('init', ...
4
votes
3answers
3k views
Setting up WordPress with Custom Permalinks and no .htaccess File?
I have a client that strongly prefers to disable .htaccess files because they like to set the Apache configurations themselves. However, they still want SEO-friendly URLs.
Is there a way to have ...
5
votes
2answers
4k views
How to handle a hierarchy with custom post types
I have moved into WordPress for a few days and was quite impressed by all the available features, plugins and polished themes. I have spent quite some times reading documentation about themes and ...
4
votes
1answer
165 views
Dynamic taxonomy in permalink made all other posts NOT FOUND?
I added my taxonomies in the permalink instead of the Custom Post Type's slug, and it works fine. I'd even say everything was working fine but changing the WP installation to Multisite broke all other ...
3
votes
1answer
143 views
Remove unwanted part of permalink custom structure from CPT url?
My site currently has regular posts (in a section called "Trend Watch"), as well as a Custom Taxonomy (called "Region").
My permalink settings have this Custom Structure:
...
3
votes
4answers
3k views
URL Rewrite + Page + Custom Post Type = Unusual Redirect
Yet another URL rewrite issue :)
The Problem
I have a URL rewrite rule that should work, but against all logic it redirects without passing the query var.
The Juicy Details
The site has a page ...
2
votes
1answer
6k views
How to rewrite URI of custom post type?
The site that I am working on uses the following "pretty" permalink structure:
http://example.com/blog/my-special-post
But for a custom post type my client would like to avoid having a "pretty" ...
2
votes
1answer
1k views
Rewrite permalinks for custom posttype and custom taxonomy
How to rewrite permalinks for a custom posttype and custom taxonomy?
I have a custom taxonomy: region, and a custom posttype: business.
Now, how to rewrite the permalink, so that
for a category, ...
4
votes
1answer
334 views
Rewrite rule for Custom post type Monthly and Yearly archive
I have a custom post type "contest_recipe". I can view contest recipe posts by year and by date with the following urls:
http://example.com/2011/?post_type=contest_recipe - shows all 2011 contest ...
3
votes
2answers
156 views
Custom post type 404s with rewriting even after resetting permalinks
I created a custom post type, of which the (simplified) arguments are:
register_post_type(
'Event',
'public' => true,
'rewrite' => array( 'slug' => 'eventy'),
'has_archive' ...
2
votes
1answer
710 views
Permalink rewrite with custom post type and custom taxonomy
I think thats a quick one:
I've got:
Custom post type: Food
Custom taxonomy (Registered to Food): Fruits
Terms in Fruits: Apple, Orange, Cherry
If I type in example.com/food?fruits=Apple,Cherry, ...
2
votes
2answers
2k views
How to replace “wp-content/blogs.dir” with “media” for attachment permalinks?
How to replace "wp-content/blogs.dir" with "media" for attachment permalinks in a multisite environment?
This is how links look now:
...
0
votes
1answer
61 views
Performance and styles not working fine after changing permalink structure
Fist I was using default option of permalink and everything was fine (speed is ok, my own created theme is working fine) but now I change default structure to post name structure of permalink now I am ...
0
votes
1answer
100 views
Semantic URL Custom Post Type and Taxonomies permalinks
I have created a custom post type with custom taxonomies. Now I need help with the permalinks.
Now is like that:
custom post type archive: example.com/custom-post-type/
taxonomy archive: ...
0
votes
1answer
234 views
How to redirect RSS feeds to Feedburner and keep pretty permalinks?
There are many tutorials out there, but all of them give you the same code snippet.
I put it into my htaccess file, but the feeds are not being redirected.
I don't want to use a plugin.
I'm sure the ...
2
votes
2answers
134 views
Different permalink for posts and authors
I tried to avoid ask this question, because I think that must be simple, but after long hours trying to get an answer I cant achieve it.
I am trying to get a permalink structure like this:
...
2
votes
1answer
506 views
Remove parent slug for child pages
I'm looking for a plugin/custom function that removes the parent slug of a child's page permalink.
Something that automatically changes the permalink for child pages.
Example:
...
2
votes
3answers
299 views
flexible rewrite 'ramble' URLs with Wordpress
I want to access my post with id 17 like this:
http://localhost/archives/17/moot-bla-foo-ramble
In other words, the id shall decide, everything thereafter may (or may not) be the slug or anything ...
2
votes
5answers
879 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 ...
2
votes
1answer
2k views
How to change permalink structure for custom post type and it's taxonomies?
This is a repost of an earlier question I had, but I like to go into more details now to be able to fully solve this.
So again, with (normal) posts changing the permalink is as easy as going to ...
2
votes
4answers
2k views
WordPress permalinks Yahoo hosting(no .htaccess allowed)
I have moved a Wordpress install to a client from sub folder to the root folder. Right now, everything works fine, except for the friendly URLs. I currently have to set the Permalink feature in ...
1
vote
1answer
68 views
How to use first tag in permalinks
i have tried %tag% in permalinks but it dont showing tag name in the permalinks... What i wanna do is to use the first tag name in the permalinks. So, how to do it? Thanks
1
vote
2answers
209 views
Permalinks Question: Adding a prefix ONLY in front of the posts
I want all my posts to have /ARTICLES/%post-name% structure.
But as soon as I modify the custom structure to that, for a reason that beats me, wordpress adds the articles prefix across the board.
...
0
votes
2answers
81 views
Permalink: postname EXCEPT for blog
In order to refrain from possible duplicate URLs or conflicting URLs, I really want to use "postname" for a clean URL structure, EXCEPT for the blog ... for the blog and it's posts, I always want ...
0
votes
1answer
183 views
Auto 301 to full post permalink? (using /posts/%post_id%/%postname%)
I update my permalink structure to /post/%post_id%/%postname%, but if someone uses a URL like /post/1234 instead of the full URL of /post/1234/bingo-rulz, WordPress shows the post without giving a 301 ...
0
votes
1answer
74 views
Multisite or redirect. Which way to go? [closed]
Hello I would like to split a Wordpress site in 2.
one category of pages will be shown on: www.domain1.com and the other category of pages will be show on www.domain2.com.
On the website hosting I ...
0
votes
2answers
674 views
Remove “attachment/” from the URL of attachment pages
Currently, the media for a page on /hello-world/ is shown on /hello-world/attachment/image-name/. Is it possible to remove attachment from this URL, and make it /hello-world/image-name/?

