Use Taxonomy Slug In Post Permalink
-
Hi all,
We’re trying to create URLs that are organised in the format below.
https://www.example.com/taxonomy-child/post-name-post-id/
We can get all the taxonomy area functioning ok in the WP admin area.
We’ve set up a custom taxonomy for posts called ‘Page Classification’ and we’ve set up children ‘How To’, ‘News’, ‘Comment’.
We can’t get the post permalink to show the taxonomy children slugs.
e.g. https://www.example.com/how-to/post-name-post-id/
I’ve been searching for hours on how to do this but can’t get it done. I’ve read through the codex pages on Taxonomies and register taxonomy function but can’t get the slug into the permalink.
The rewrite rule in the register taxonomy function just seems to do nothing.
How can we get the post permalink to use the taxonomy children slugs?
Dave
- The topic ‘Use Taxonomy Slug In Post Permalink’ is closed to new replies.