So, I have a CPT named: Sport and a taxonomy named: sport_types;

I a want an url structure like this:

/sports/ <- archive-sport
/sports/karate <- taxonomy-sport_types
/sports/karate/history <- single-sport

Note: I want to rewrite the slug of the post type to sports.

How can I get this permalink structure? I was playing with

'rewrite' => array('slug' => 'sports', 'with_front' => true),


'rewrite' => array('slug' => 'sports', 'with_front' => false),

in both taxonomy and cpt declaration but I cant get the 3 url’s to work.

How can I resolve this issue?

Read more here: WP Custom Post type & Taxonomy url structure


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , , , , ,

Wordpress related questions and answers: