Search code examples
wordpressurlurl-rewritingtaxonomypermalinks

Change post permalink structure on WordPress to use custom taxonomy


I want to change the post permalink schema on my WordPress 3.0-beta1 to use my new custom taxonomy.

Today I can use /%category%/%postname%/ and the /my-category/my-post/ URL, that's nice but I need to use another taxonomy instead "category" one.

I tried to use /%acervo%/%postname%/ but my URLs came with %acervo% on the URL instead the name of the "Acevo" (my taxonomy name) wich the post belongs to.

I found something related to WP_Rewrite but without sucess...


Solution

  • You could try using the WordPress plugin, No Category Base, and then hard code the taxonomy in with the postname wildcard, like so:

    /acervo/%postname%/
    

    Note that acervo does not have the percentage signs since it's "hard coded" and not a wildcard.