Custom Permalinks for WordPress Category and Tag Pages

Set a Custom Base for Category and Tag Urls in WordPress

By default, WordPress includes the words category and tag as the basis for the URLs of important pages. For example:

  • – for a category page.
  • – for a tag page.

In this tutorial, I’m going to show you how to replace the words “category” and “tag” in your URLs.

Step #1. Set custom category and tag base

  • Go to Settings > Permalinks > Optional.
  • Type custom Category base and Tag base. No empty spaces.
Base for Category and Tag WordPress
  • Click “Save changes”.

Step #2. End result

Go to your public site, check the new structure in the urls.

Category page:

Base for Category and Tag WordPress

Tag page:

Base for Category and Tag WordPress

To reset to default base, repeat step 1 by leaving the category and tag base empty.


  • Valentin Garcia

    Valentin discovered Joomla in 2010, and since then he has considered it as the best CMS. Valentin has been coding extensions and templates for Joomla for many years and truly enjoys helping people build their own websites with Open Source tools. He lives in San Julián, Jalisco, México.

    View all posts
0 0 votes
Article Rating
Notify of

1 Comment
Newest Most Voted
Inline Feedbacks
View all comments
Attiq Haroon
Attiq Haroon
7 years ago

How can I add an extension to the category URLs? Like /category/name.html

Would love your thoughts, please comment.x