How to Include Categories and Subcategories in WordPress URLs
Are you wondering how to include categories and subcategories in WordPress URLs?
Including categories and subcategories in URLs is an SEO-friendly practice. It helps users easily navigate through your website.
Today, we’ll discuss how to include categories and subcategories in WordPress URLs.
Why include category and subcategory in WordPress URLs?
Categories and subcategories allow you to organize and structure posts. The default WordPress URLs include date and post IDs. 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 keywords in URLs; hence, they’ll also increase your site’s rank. Apart from that, it matches the breadcrumbs of your site so your visitors can easily find what they are looking for.
Having said that, let’s begin.
Add categories and subcategories to WordPress URLs.
Adding categories and subcategories 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.
- 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.
- 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 it will display the added category and subcategory in WordPress URLs.
Final Thoughts
Now that you have learned how to add categories and subcategories to 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:
2 thoughts on “How to Include Categories and Subcategories in WordPress URLs”