How To Remove Category From WordPress URL [3 Methods]

LAST UPDATED: September 11, 2020 • POSTED IN: , ,

WordPress permalinks play a very major role in your website structure, SEO, and user experience. You must decide how your permalinks should look like.

In most of the cases, if you’re using WordPress then by default you’ll get category and date included in your post URL which looks weird sometimes.

correct-permalink-structure

In this post, we’ll see how to remove category from WordPress URL. Let’s get started.

Method #1: Remove Category From URL [Default Settings]

Let’s see how to remove category from WordPress URL using deafult permalinks settings:

Before: https://thebloggingtime.com/my-category/post-name

After: https://thebloggingtime.com/post-name/

  1. Navigate to Settings > Permalinks
  2. Select Custom Structure.
  3. Remove %category% from Custom Structure.
  4. Click on Save Changes.
category-in-post-permalink

Just like below, you can use only /%postname%/ in your custom structure or you can choose “Post Name”.

wordpress-permalink-structure

This is you can remove category from URLs and your permalinks will look more cleaner.

Method #2: Remove Category Base From URL [Using Plugin]

In most of the cases, method 1 will work as expected. But in case you want to remove category base from category pages then using a plugin is a good option:

Before: https://thebloggingtime.com/category/my-category/

After: https://thebloggingtime.com/my-category/

  1. Navigate to Plugins -> Add New
  2. Search For Remove Category URL.
  3. Install and Activate the plugin.

Else Download it from here.

remove-category-from-wordpress-url-plugin

After installing the plugin, no extra configuration is required, it will immediately remove the category base from your website’s permalinks.

Method #3: Remove Category Base From URL [Using Yoast]

If you’re using Yoast SEO plugin then you can easily remove category base from Yoast setting and no need to install any additional plugin on your website.

  1. Navigate to SEO > Search Appearances
  2. Select Taxonomies.
  3. Scroll down you’ll see Category URLs
  4. Toggle to Remove
  5. Click on Save Changes.
remove-category-base-from-wordpress-url-using-yoast

This is how you can easily do with Yoast.

Conclusion:

In this post, we discusse how to remove category from wordpress URL, both category and category base.

Method 1 will work for removing the name of category from your post URL and method 2 and 3 are used to remove category base from your permalinks.

If you’re using Yoast then I will highly recommend using method 3 because adding unnecessary plugins will slow down your website for sure.

Here are some handpicked guide for you:

Leave a Comment

Copy link
Powered by Social Snap