2

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.

  • Did you already try solutions like this or this? – kero Sep 7 '17 at 12:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.