WordPress

Remove Category or Tag Slug from url

July 25, 2015 /1 min read

A client asked me in ThemeForest comments that how to remove category slug in URL of WordPress blog installation. I researched a bit and found a very helpful article on https://premium.wpmudev.org/. I am writing short version below.

My client tried some plugins, but none of those worked for him and myself so do not waste your time on plugins and try this two steps trick given below. Go to permalink settings and follow these steps.

  1. Put “/%category%/%postname%/ ” in Custom Structure radio option field.
  2. Put a dot ” . ” in Category Base option field.

2015-07-25_0101

Save your permalink settings (do it twice if it doesn’t work), and it’s done.

It is working up to WordPress version 4.2.3 as I have checked.

3 Comments

    1. Hassan

      HI Karim,
      You can use the plugin too but installing a plugin for that kind of small task sounds a bit overkill. Users can do that if it stops working on in any of the future updates of the WordPress.
      Regards

  1. Celeb

    Man, I appreciate your research, Thanks it works

Leave a Comment

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

Let's build something exceptional.

I'm selectively available for consulting, security audits, plugin architecture, and product development partnerships. If you're building something that demands engineering excellence, I'd love to hear about it.

Looking for a detailed project estimation? Use Wizard

Fun Portfolio Projects

Cli Folio Comicbook Desktop Factory Game Folio Toons Folio
Hassan Raza