Permalinks: custom post type -> custom taxonomy -> post

Posted by Prem Tiwari | Updated on

First, register your taxonomy and set the slug argument of rewrite to shows:

Next, register your post type and set the slug to shows/%show_category%, and set has_archive argument to shows:

Last, add a filter to post_type_link to substitute the show category in individual show permalinks:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers