How to remove Category base From the WordPress URL

There are a few ways to remove the category from the WordPress URL.

Using the WordPress permalinks settings

  1. Go to Settings > Permalinks.
  2. Select Custom Structure.
  3. In the Custom Structure field, add the following code:
Code snippet
/%category%/%postname%/
  1. In the Category Base field, enter a period (.).
  2. Click Save Changes.

Using the Yoast SEO plugin

  1. Install and activate the Yoast SEO plugin.
  2. Go to Yoast SEO > Search Appearance > Taxonomies.
  3. Under Category URLs, select Remove the categories prefix.
  4. Click Save Changes.

Using a third-party plugin

There are a number of third-party plugins that can help you remove the category from the WordPress URL. One popular option is the Remove Category URL plugin.

  1. Install and activate the Remove Category URL plugin.
  2. Go to Settings > Remove Category URL.
  3. Click Save Changes.

Once you have made the changes, your category URLs will no longer contain the word “category”.

Here are some additional tips for removing the category from the WordPress URL:

  • If you are using a custom domain name, you will need to update your DNS records to reflect the new URL structure.
  • If you are using a shared hosting provider, you may need to contact their support team for assistance in updating your DNS records.
  • If you are using a WordPress caching plugin, you may need to clear your cache after making the changes to the permalinks settings.