How to Include Category and Subcategory in WordPress URLs

How to Include Category and Subcategory in WordPress URLs

Spread the love

Are you wondering how to include category and subcategory in WordPress URLs?

Including category and subcategory in URLs is an SEO friendly practice. It helps users to easily navigate through your website.

Today, we’ll discuss how to include category and subcategory in WordPress URLs.

Why Include Category and Subcategory in WordPress URLs?

Category and subcategory allow you to organize and structure posts. The default WordPress URLs include date and post ID. This results in a complex URL structure that has a bad impact on SEO. Check out how to change WordPress permalink setting on your website.

Most people use categories and subcategories in URLs to make them more user friendly. Categories and subcategories act as a keyword in URLs hence, it’ll also increase google rank. Apart from that, it matches with breadcrumbs of your site so your visitors can easily find what they are looking for.

Having said that, let’s begin.

Add Category and Subcategory in WordPress URLs?

Adding category and subcategory in WordPress is very easy. First of all, you need to add post to category and subcategory.

  • Login to WordPress admin.
  • Navigate to Settings>>Permalink.

navigate-to-permalink

  • Then scroll down and click on the custom structure option under the common settings area.
  • Now, simply add %category and /%category%/%postname%/ in the box.

Add-categories-and-subcategories-in-URLs

  • Finally, click on the save changes button to implement the changes.

Note: If there is more than one category or subcategory then WordPress will include only the primary category and subcategory in the URL structure. 

That’s all. Now see added category and subcategory in WordPress URLs.

Final Thoughts

Now that you have learned how to include category and subcategory in WordPress URLs, go give it a try. If you liked this article, please follow us on Facebook and Twitter.

If you have any queries, ask us on the comment section below:

Other Related Articles:

 

Kriti Mandal is a professional WordPress enthusiastic and blogger. Her specialities are SEO content writing, digital marketing and more. Besides blogging, she likes to travel and read books.