I have a Custom Post Type registered as “News”

And there are 2 taxonomy being assigned to this Custom Post Type i.e News Category, News Country

Right now if I am previewing the single news page, the URL pattern it generates is SITE_URL/news/news-title-slug

I need a custom URL pattern which follows like this
SITE_URL/{term of News Category}/{term of News Country}/news-title-slug

I have tried using add_rewrite_rules, but it is not working.

0

Leave a Reply

Your email address will not be published. Required fields are marked *