Photo by cottonbro studio: https://www.pexels.com/photo/person-using-macbook-pro-beside-white-ceramic-mug-5052875/

How To Remove The Tag Base From WordPress Permalinks?

You can remove the base tag slug in the WordPress permalinks structure. Earlier this was done with the help of a plugin or PHP function but now you can do it from your admin area dashboard.

By default the tag URL on WordPress looks something like this – yourdomain.com/tag/tag-name, now we have to remove the tag from the permalink so that URLs should look something like this yourdomain.com/tag-name/.

These steps allow you to remove the tag prefix completely by modifying your site’s permanent link settings.

  1. Navigate to your WordPress dashboard
  2. Navigate to Settings -> Permalinks page
  3. Scroll to Custom Structure and put ‘/%tag%/%postname%/’.
  4. Go to Tag Base and type in a dot “. “
  5. Save your changes.

The tag prefix is removed by typing the dot in the tag base field. It completely removes the mandatory tag base from the tag permalinks, so the tag name comes right after your domain name in the permalink structure.

By default, this field is left blank which represents the default prefix.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.