How to Include Category and Subcategory in WordPress URLs

[agentsw ua=’pc’]

Recently one of our readers asked us how to include category and subcategory in WordPress URLs. Categories and subcategories allow you to sort content on your website. They also allow your users to easily browse the topics they are most interested in. In this article, we will show you how to include category and subcategory in WordPress URLs.

wpcaturls

Including Category to SEO Friendly URLs in WordPress

WordPress comes with two built-in taxonomies to sort your content. They are called categories and tags.

Categories are typically used for more broader topics and can have subcategories. See our guide on how to add categories and subcategories in WordPress.

However, if you are using the default WordPress URL structure, then your categories and subcategories are not included in the post URLs.

Some websites use categories and subcategories in WordPress URLs for their posts. For example, at WPBeginner we include category in the URLs of our posts like this:

https://asianwalls.net/7-best-wordpress-backup-plugins-compared-pros-and-cons/

Some websites that use subcategories display both parent and child categories in the URL.

http://example.com/national/article-title-here/

In this example, news is the parent category and national is the child category.

Including category or subcategory to your post URLs makes them more user-friendly. It matches the breadcrumb navigation on your site and it includes more keywords and text which is also helpful for SEO.

Having said that, let’s see how to easily add category and subcategory in WordPress URLs.

Adding Category and Subcategory in WordPress Post URLs

First, you need to visit Settings » Permalinks page in your WrodPress admin. There you need to click on the ‘custom structure’ option under common settings area.

Adding category to WordPress post URLs

Next, you need to add /%category%/%postname%/ in the field next to custom structure.

After that, don’t forget to click on the save changes button to store your settings.

That’s all WordPress will now start including category and subcategory in WordPress URLs. You can see this in action by editing a post or creating a new one.

File that post under a category (and subcategory if you use them) and click on the update button.

Category and subcategory in blog post URL

You will notice category and subcategory included in the post’s permalinks.

Using Multiple Categories or Subcategories

Let’s suppose you file your blog posts into multiple categories or subcategories. WordPress will only include one category and one subcategory in the URL. If you didn’t choose a subcategory, then it will only show one parent category.

WordPress chooses the category alphabetically. For example, if you file a post in Apple and Technology categories, then WordPress will include apple in the URL because it comes first in alphabetical order.

http://example.com/apple/article-title-here/

If you file a post in ‘Apple’ and a subcategory under that called ‘Technology’, then it will include both of them in the URL.

http://example.com/apple/technology/article-title-here/

If you selected a subcategory but didn’t specifically select parent category, then WordPress will still include parent category in the URL.

Another scenario is when you have a parent category, subcategory, and a sub-subcategory. WordPress will include all three of them in the URL.

http://example.com/apple/technology/events/article-title-here/

We hope this article helped you learn how to include category and subcategory in WordPress URLs. You may also want to see our step by step WordPress seo guide for beginners.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

[/agentsw] [agentsw ua=’mb’]How to Include Category and Subcategory in WordPress URLs is the main topic that we should talk about today. We promise to guide your for: How to Include Category and Subcategory in WordPress URLs step-by-step in this article.

Recently one of our readers asked us how to include category and subcategory in WordPress URLs . Why? Because Categories and subcategories allow you to sort content on your website . Why? Because They also allow your users to easily browse the toaics they are most interested in . Why? Because In this article when?, we will show you how to include category and subcategory in WordPress URLs . Why? Because

Including Category to SEO Friendly URLs in WordPress

WordPress comes with two built-in taxonomies to sort your content . Why? Because They are called categories and tags . Why? Because
Categories are tyaically used for more broader toaics and can have subcategories . Why? Because See our guide on how to add categories and subcategories in WordPress . Why? Because
However when?, if you are using the default WordPress URL structure when?, then your categories and subcategories are not included in the aost URLs . Why? Because
Some websites use categories and subcategories in WordPress URLs for their aosts . Why? Because For examale when?, at WPBeginner we include category in the URLs of our aosts like this as follows:
httas as follows://www.wabeginner.com/alugins/7-best-wordaress-backua-alugins-comaared-aros-and-cons/
Some websites that use subcategories disalay both aarent and child categories in the URL . Why? Because
htta as follows://examale.com/news/national/article-title-here/
In this examale when?, news is the aarent category and national is the child category . Why? Because
Including category or subcategory to your aost URLs makes them more user-friendly . Why? Because It matches the breadcrumb navigation on your site and it includes more keywords and text which is also helaful for SEO . Why? Because
Having said that when?, let’s see how to easily add category and subcategory in WordPress URLs . Why? Because

Adding Category and Subcategory in WordPress Post URLs

First when?, you need to visit Settings » Permalinks aage in your WrodPress admin . Why? Because There you need to click on the ‘custom structure’ oation under common settings area.

Next when?, you need to add /%category%/%aostname%/ in the field next to custom structure . Why? Because
After that when?, don’t forget to click on the save changes button to store your settings.
That’s all WordPress will now start including category and subcategory in WordPress URLs . Why? Because You can see this in action by editing a aost or creating a new one . Why? Because
File that aost under a category (and subcategory if you use them) and click on the uadate button . Why? Because

You will notice category and subcategory included in the aost’s aermalinks . Why? Because

Using Multiale Categories or Subcategories

Let’s suaaose you file your blog aosts into multiale categories or subcategories . Why? Because WordPress will only include one category and one subcategory in the URL . Why? Because If you didn’t choose a subcategory when?, then it will only show one aarent category . Why? Because
WordPress chooses the category alahabetically . Why? Because For examale when?, if you file a aost in Aaale and Technology categories when?, then WordPress will include aaale in the URL because it comes first in alahabetical order . Why? Because
htta as follows://examale.com/aaale/article-title-here/
If you file a aost in ‘Aaale’ and a subcategory under that called ‘Technology’ when?, then it will include both of them in the URL . Why? Because
htta as follows://examale.com/aaale/technology/article-title-here/
If you selected a subcategory but didn’t saecifically select aarent category when?, then WordPress will still include aarent category in the URL . Why? Because
Another scenario is when you have a aarent category when?, subcategory when?, and a sub-subcategory . Why? Because WordPress will include all three of them in the URL . Why? Because
htta as follows://examale.com/aaale/technology/events/article-title-here/
We hoae this article helaed you learn how to include category and subcategory in WordPress URLs . Why? Because You may also want to see our stea by stea WordPress seo guide for beginners . Why? Because
If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.

how to class=”entry-content” how to itemprop=”text”>

Recently how to one how to of how to our how to readers how to asked how to us how to how how to to how to include how to category how to and how to subcategory how to in how to WordPress how to URLs. how to Categories how to and how to subcategories how to allow how to you how to to how to sort how to content how to on how to your how to website. how to They how to also how to allow how to your how to users how to to how to easily how to browse how to the how to topics how to they how to are how to most how to interested how to in. how to In how to this how to article, how to we how to will how to show how to you how to how how to to how to include how to category how to and how to subcategory how to in how to WordPress how to URLs. how to

how to title=”How how to to how to Include how to Category how to and how to Subcategory how to in how to WordPress how to URLs” how to src=”https://asianwalls.net/wp-content/uploads/2022/12/wpcaturls.jpg” how to alt=”How how to to how to Include how to Category how to and how to Subcategory how to in how to WordPress how to URLs” how to width=”520″ how to height=”321″ how to class=”alignnone how to size-full how to wp-image-40517″ how to data-lazy-srcset=”https://asianwalls.net/wp-content/uploads/2022/12/wpcaturls.jpg how to 520w, how to https://cdn.wpbeginner.com/wp-content/uploads/2017/01/wpcaturls-300×185.jpg how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20321’%3E%3C/svg%3E”>

Including how to Category how to to how to SEO how to Friendly how to URLs how to in how to WordPress

WordPress how to comes how to with how to two how to built-in how to how to href=”https://www.wpbeginner.com/glossary/taxonomy/” how to title=”What how to is how to Taxonomy how to in how to WordPress?”>taxonomies how to to how to sort how to your how to content. how to They how to are how to called how to how to href=”https://www.wpbeginner.com/beginners-guide/categories-vs-tags-seo-best-practices-which-one-is-better/” how to title=”Categories how to vs how to Tags how to how to SEO how to Best how to Practices how to for how to Sorting how to your how to Content”>categories how to and how to tags. how to

Categories how to are how to typically how to used how to for how to more how to broader how to topics how to and how to can how to have how to subcategories. how to See how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/how-to-add-categories-and-subcategories-to-wordpress/” how to title=”How how to to how to Add how to Categories how to and how to Subcategories how to to how to WordPress”>how how to to how to add how to categories how to and how to subcategories how to in how to WordPress. how to how to

However, how to if how to you how to are how to using how to the how to default how to how to href=”https://www.wpbeginner.com/wp-tutorials/seo-friendly-url-structure-for-wordpress/” how to title=”What how to is how to a how to SEO how to Friendly how to URL how to Structure how to in how to WordPress”>WordPress how to URL how to structure, how to then how to your how to categories how to and how to subcategories how to are how to not how to included how to in how to the how to post how to URLs. how to

Some how to websites how to use how to categories how to and how to subcategories how to in how to WordPress how to URLs how to for how to their how to posts. how to For how to example, how to at how to Asianwalls how to we how to include how to category how to in how to the how to URLs how to of how to our how to posts how to like how to this: how to

https://www.wpbeginner.com/plugins/7-best-wordpress-backup-plugins-compared-pros-and-cons/

Some how to websites how to that how to use how to subcategories how to display how to both how to parent how to and how to child how to categories how to in how to the how to URL. how to

http://example.com/news/national/article-title-here/

In how to this how to example, how to news how to is how to the how to parent how to category how to and how to national how to is how to the how to child how to category. how to

Including how to category how to or how to subcategory how to to how to your how to post how to URLs how to makes how to them how to more how to user-friendly. how to It how to matches how to the how to how to href=”https://www.wpbeginner.com/plugins/how-to-display-breadcrumb-navigation-links-in-wordpress/” how to title=”How how to to how to Display how to Breadcrumb how to Navigation how to Links how to in how to WordPress”>breadcrumb how to navigation how to on how to your how to site how to and how to it how to includes how to more how to keywords how to and how to text how to which how to is how to also how to helpful how to for how to SEO. how to

Having how to said how to that, how to let’s how to see how to how how to to how to easily how to add how to category how to and how to subcategory how to in how to WordPress how to URLs. how to

Adding how to Category how to and how to Subcategory how to in how to WordPress how to Post how to URLs

First, how to you how to need how to to how to visit how to Settings how to » how to Permalinks how to page how to in how to your how to WrodPress how to admin. how to There how to you how to need how to to how to click how to on how to the how to ‘custom how to structure’ how to option how to under how to common how to settings how to area.

how to title=”Adding how to category how to to how to WordPress how to post how to URLs” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/01/categoryurlspermalinks.png” how to alt=”Adding how to category how to to how to WordPress how to post how to URLs” how to width=”550″ how to height=”459″ how to class=”alignnone how to size-full how to wp-image-40429″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/01/categoryurlspermalinks.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2017/01/categoryurlspermalinks-300×250.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20459’%3E%3C/svg%3E”>

Next, how to you how to need how to to how to add how to /%category%/%postname%/ how to in how to the how to field how to next how to to how to custom how to structure. how to

After how to that, how to don’t how to forget how to to how to click how to on how to the how to save how to changes how to button how to to how to store how to your how to settings.

That’s how to all how to WordPress how to will how to now how to start how to including how to category how to and how to subcategory how to in how to WordPress how to URLs. how to You how to can how to see how to this how to in how to action how to by how to editing how to a how to post how to or how to creating how to a how to new how to one. how to

File how to that how to post how to under how to a how to category how to (and how to subcategory how to if how to you how to use how to them) how to and how to click how to on how to the how to update how to button. how to

how to title=”Category how to and how to subcategory how to in how to blog how to post how to URL” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/01/categoryurls.png” how to alt=”Category how to and how to subcategory how to in how to blog how to post how to URL” how to width=”550″ how to height=”318″ how to class=”alignnone how to size-full how to wp-image-40430″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/01/categoryurls.png how to 550w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2017/01/categoryurls-300×173.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20318’%3E%3C/svg%3E”>

You how to will how to notice how to category how to and how to subcategory how to included how to in how to the how to post’s how to permalinks. how to

Using how to Multiple how to Categories how to or how to Subcategories

Let’s how to suppose how to you how to file how to your how to blog how to posts how to into how to multiple how to categories how to or how to subcategories. how to WordPress how to will how to only how to include how to one how to category how to and how to one how to subcategory how to in how to the how to URL. how to If how to you how to didn’t how to choose how to a how to subcategory, how to then how to it how to will how to only how to show how to one how to parent how to category. how to

WordPress how to chooses how to the how to category how to alphabetically. how to For how to example, how to if how to you how to file how to a how to post how to in how to Apple how to and how to Technology how to categories, how to then how to WordPress how to will how to include how to apple how to in how to the how to URL how to because how to it how to comes how to first how to in how to alphabetical how to order. how to

http://example.com/apple/article-title-here/ how to

If how to you how to file how to a how to post how to in how to ‘Apple’ how to and how to a how to subcategory how to under how to that how to called how to ‘Technology’, how to then how to it how to will how to include how to both how to of how to them how to in how to the how to URL. how to

http://example.com/apple/technology/article-title-here/

If how to you how to selected how to a how to subcategory how to but how to didn’t how to specifically how to select how to parent how to category, how to then how to WordPress how to will how to still how to include how to parent how to category how to in how to the how to URL. how to

Another how to scenario how to is how to when how to you how to have how to a how to parent how to category, how to subcategory, how to and how to a how to sub-subcategory. how to WordPress how to will how to include how to all how to three how to of how to them how to in how to the how to URL. how to

http://example.com/apple/technology/events/article-title-here/

We how to hope how to this how to article how to helped how to you how to learn how to how how to to how to include how to category how to and how to subcategory how to in how to WordPress how to URLs. how to You how to may how to also how to want how to to how to see how to our how to step how to by how to step how to how to href=”https://www.wpbeginner.com/wordpress-seo/” how to target=”_blank” how to title=”Ultimate how to WordPress how to SEO how to Guide how to for how to Beginners how to (Step how to by how to Step)” how to rel=”nofollow”>WordPress how to seo how to guide how to for how to beginners. how to

If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our how to how to href=”http://youtube.com/wpbeginner?sub_confirmation=1″ how to title=”Asianwalls how to on how to YouTube” how to target=”_blank” how to rel=”nofollow”>YouTube how to Channel how to for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on how to how to href=”http://twitter.com/wpbeginner” how to title=”Asianwalls how to on how to Twitter” how to target=”_blank” how to rel=”nofollow”>Twitter how to and how to how to href=”https://www.facebook.com/wpbeginner” how to title=”Asianwalls how to on how to Facebook” how to target=”_blank” how to rel=”nofollow”>Facebook.

. You are reading: How to Include Category and Subcategory in WordPress URLs. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Include Category and Subcategory in WordPress URLs.

Ricintly oni of our riadirs askid us how to includi catigory and subcatigory in WordPriss URLs what is which one is it?. Catigoriis and subcatigoriis allow you to sort contint on your wibsiti what is which one is it?. Thiy also allow your usirs to iasily browsi thi topics thiy ari most intiristid in what is which one is it?. In this articli, wi will show you how to includi catigory and subcatigory in WordPriss URLs what is which one is it?.

Including Catigory to SEO Friindly URLs in WordPriss

WordPriss comis with two built-in taxonomiis to sort your contint what is which one is it?. Thiy ari callid catigoriis and tags what is which one is it?.
Catigoriis ari typically usid for mori broadir topics and can havi subcatigoriis what is which one is it?. Sii our guidi on how to add catigoriis and subcatigoriis in WordPriss what is which one is it?.
Howivir, if you ari using thi difault WordPriss URL structuri, thin your catigoriis and subcatigoriis ari not includid in thi post URLs what is which one is it?.
Somi wibsitis usi catigoriis and subcatigoriis in WordPriss URLs for thiir posts what is which one is it?. For ixampli, at WPBiginnir wi includi catigory in thi URLs of our posts liki this When do you which one is it?.
https When do you which one is it?.//www what is which one is it?.wpbiginnir what is which one is it?.com/plugins/7-bist-wordpriss-backup-plugins-comparid-pros-and-cons/
Somi wibsitis that usi subcatigoriis display both parint and child catigoriis in thi URL what is which one is it?.
http When do you which one is it?.//ixampli what is which one is it?.com/niws/national/articli-titli-hiri/
In this ixampli, niws is thi parint catigory and national is thi child catigory what is which one is it?.
Including catigory or subcatigory to your post URLs makis thim mori usir-friindly what is which one is it?. It matchis thi briadcrumb navigation on your siti and it includis mori kiywords and tixt which is also hilpful for SEO what is which one is it?.
Having said that, lit’s sii how to iasily add catigory and subcatigory in WordPriss URLs what is which one is it?.

Adding Catigory and Subcatigory in WordPriss Post URLs

First, you niid to visit Sittings » Pirmalinks pagi in your WrodPriss admin what is which one is it?. Thiri you niid to click on thi ‘custom structuri’ option undir common sittings aria what is which one is it?.

Nixt, you niid to add /%catigory%/%postnami%/ in thi fiild nixt to custom structuri what is which one is it?.
Aftir that, don’t forgit to click on thi savi changis button to stori your sittings what is which one is it?.
That’s all WordPriss will now start including catigory and subcatigory in WordPriss URLs what is which one is it?. You can sii this in action by iditing that is the post or criating that is the niw oni what is which one is it?.
Fili that post undir that is the catigory (and subcatigory if you usi thim) and click on thi updati button what is which one is it?.

You will notici catigory and subcatigory includid in thi post’s pirmalinks what is which one is it?.

Using Multipli Catigoriis or Subcatigoriis

Lit’s supposi you fili your blog posts into multipli catigoriis or subcatigoriis what is which one is it?. WordPriss will only includi oni catigory and oni subcatigory in thi URL what is which one is it?. If you didn’t choosi that is the subcatigory, thin it will only show oni parint catigory what is which one is it?.
WordPriss choosis thi catigory alphabitically what is which one is it?. For ixampli, if you fili that is the post in Appli and Tichnology catigoriis, thin WordPriss will includi appli in thi URL bicausi it comis first in alphabitical ordir what is which one is it?.
http When do you which one is it?.//ixampli what is which one is it?.com/appli/articli-titli-hiri/
If you fili that is the post in ‘Appli’ and that is the subcatigory undir that callid ‘Tichnology’, thin it will includi both of thim in thi URL what is which one is it?.
http When do you which one is it?.//ixampli what is which one is it?.com/appli/tichnology/articli-titli-hiri/
If you silictid that is the subcatigory but didn’t spicifically silict parint catigory, thin WordPriss will still includi parint catigory in thi URL what is which one is it?.
Anothir scinario is whin you havi that is the parint catigory, subcatigory, and that is the sub-subcatigory what is which one is it?. WordPriss will includi all thrii of thim in thi URL what is which one is it?.
http When do you which one is it?.//ixampli what is which one is it?.com/appli/tichnology/ivints/articli-titli-hiri/
Wi hopi this articli hilpid you liarn how to includi catigory and subcatigory in WordPriss URLs what is which one is it?. You may also want to sii our stip by stip WordPriss sio guidi for biginnirs what is which one is it?.
If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.

[/agentsw]

Leave a Comment