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:

  • mysite.com/category/something – for a category page.
  • mysite.com/tag/something – 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.

Author

  • 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.

0 0 votes
Article Rating
Subscribe
Notify of
1 Comment
Oldest
Newest
Inline Feedbacks
View all comments
Attiq Haroon
Attiq Haroon
6 years ago

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

1
0
Would love your thoughts, please comment.x
()
x