Remove Category or Tag Slug from url


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 http://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.

You may also like

2 Comments

  • Karim
    October 25, 2017 at 12:56 am

    Hello Hassan, and what is different from plugin?? faster performance or same??
    https://wordpress.org/plugins/remove-category-base-littlebizzy/

    • Hassan
      August 4, 2018 at 11:54 pm

      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

LEAVE A COMMENT

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

https://t.co/qfYqr5e5Sz Launches VR Content, Coming Soon to Jetpack https://t.co/p0klqbne1x via @wptavern

@kamranzahidawan Very well done guys.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

affiliate_link

Categories