Site icon Hip-Hop Website Design and Development

Remove custom post type slug but keep related category taxonomy permalink

struggling as well with custom url rewriting for custom post type taxonomies.

Here is my requirement:

domain/mycpt_category/postname/

It’s well documented here and in several SE threads removing the CPT basename so that the resulting permalink is:

domain/postname/

And I am able to construct the permalink such as:

domain/cpt-basename/cpt_category/postname (following this solution )

What I am really trying to achieve is removing the custom post type slug but keep its related taxonomy category so my link would be:

domain/mycpt_category/postname/

Thanks for you much appreciated help on this.