Remove custom post type slug from URL

Posted by Prem Tiwari | Updated on

That’s how you can do first part of the job – get rid o CPT slug in post link (eg. news post type).

Now there should go a a rewrite rules for ‘news’, because you will get a 404 error. Add the rewrite rule like this:

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

Related Questions & Answers