Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

It is possible to use this as a permalink for a post:

/%category%/%postname%/

But lets say I've created a taxonomy called "artist". I'd like to use this for my posts:

/%artist%/%postname%/

I know that taxonomies allow you to list their terms with this:

/%artist%/%someartist%/

but that is not what I'm looking for. I want to modify POST urls, not taxonomy ones.

I'm trying this on my blog and it is not working. Is this something that can be done in Wordpress?

share|improve this question

2 Answers 2

I think this is what your looking for: Custom Post Type Permalinks

This plugin lets you edit the permalink structure of custom post type.

To install this plugin:

  1. Download the custom-post-type-permalinks.zip file to your computer.
  2. Unzip the file.
  3. Upload the custom-post-type-permalinks directory to your /wp-content/plugins/ directory.
  4. Activate the plugin through the 'Plugins' menu in WordPress.

You can also go to the 'Plugins' menu in your wordpress and click "add new". Then find this plugin by searching for "Custom Post Type Permalinks" and install it by clicking the install button.

A new item will appear in the menu on the left of your wordpress admin. Here you can change the settings depending on your needs (names of the taxonomies etc).


Futhermore my site currently has the following permalink structure "site.com/star/aristname/" which then list all posts for this artist or a page/post about this artist.

If your looking for this you can create an archive page for your custom post type. Wordpress will automaticly assume this structure. For more information on how to create your own archive page please go here. (If your indeed looking for this, I can explain it more thoroughly if you want)

share|improve this answer
    
Please dont just link to external plugins. Explain how it will help and give information on how to configure said plugin for the users question. –  Brady Jun 28 '12 at 8:04
    
I see your point. But to vote it down, when there are no other answers available is a bit much not? –  Aleks Jun 28 '12 at 12:03
    
Just because it is the only answer doesn't make it a good answer. I down voted as the answer was poor. Now that you have made your answer better I have removed the down vote. –  Brady Jun 28 '12 at 13:18

Whan i wanted to hook url to category (in any url structure) i set a list of terms into url rewrite structure , but in my case there was not much terms...

the results was something like rewrite rule key

publications/(annual-reports|articles|books|policy-briefs)/([^/]+).html?$ 

and rule value

index.php?post_type=publication&category_publication=$matches[1]&publication=$matches[2]&paged=1

everything was hooked using rewrite_rules_array filter.

result you can see at http://unu.edu/publications

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.