How to remove category base from WordPress category URL?

Posted by Prem Tiwari | Updated on

Want to remove category base from WordPress category URL? You can use http://wordpress.org/extend/plugins/wp-no-category-base/ plugin and it doesn’t alter permalink, so removing it reverts the structure with no problem. And you don’t have to alter core files.

If you don’t want to use the above plugin, then use the following code in your theme’s functions.php file:


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