0

I've installed the Custom Post Types UI plugin and have made a post type and taxonomy. When I click 'add new' to make a new post the slug always defaults to:-

https://domain.com/custom-post-type/post-name

I would like the permalink for posts to inlcude the heirachy of taxomonies to show something like this:-

http://domain.com/custom-post-type/taxomony/sub-taxomony/post-name

How would I achieve this?

Many thanks

Will

1 Answer 1

0

What is the setting of your permalinks under settings/permalinks? Have you tried using Custom Structure: /%category%/%postname%/ ?

3
  • My permalink structure is set to custom with the following structure /%day%/%monthnum%/%year%/%post_id%/%author%/ I thought this only affects posts/pages (the default post types that WordPress uses). So does this setting affect custom post types too? Commented Nov 13, 2018 at 13:14
  • I think so. Maybe try this plugin which says it allows separate permalink structures for custom post types : en-gb.wordpress.org/plugins/custom-post-type-permalinks
    – retrocool
    Commented Nov 13, 2018 at 22:27
  • I have tried both of those and don't seem to be having any luck. I have a category called 'Entertainment' and a taxonomy called 'Gaming'. This is the structure I would like:- domain.com/entertainment/gaming/post_name However, with the following permalink structure:- entertainment/%custom_taxonomy_slug%/%postname%/ the 'custom_taxonomy_slug' tag doesn't work. Commented Nov 14, 2018 at 9:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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