Wordpress Remove the word category from url

From Code Trash
Jump to: navigation, search

I found this some where and thought of having a copy of the following so that i can remember. Written by CaioProiete…

Step 1.
Hello guys!

It is possible to remove the category base from the permalink. Well, not on the administration panel, but with a small hack:

On line 371 of the wp-includes/rewrite.php file, you’ll see the code:

$this->category_structure = $this->front . ‘category/’;

Now just remove the “category” from the string, and the code should look like:

$this->category_structure = $this->front . ‘/’;


CaioProieteWordPress Member

Step 2.
another way of doing that is by the following which worked for me so here we go…

Just enter /. as the value for Category base.


i found the above two in the following link