Skip to content
WordPress

Show the Subcategory in WordPress Permalinks and Breadcrumbs

I ran into this while sorting out the posts page on this site.

The problem

My post was in a subcategory, WordPress, which sits inside a parent category, Guide. I wanted the breadcrumbs to show Home > Guide > WordPress > Post name, but they only showed Home > Guide > Post name. The web address skipped the subcategory too.

The fix

When you edit the post, tick only the subcategory, not the parent. In my case, I tick WordPress and leave Guide unticked.

WordPress still knows WordPress belongs to Guide, so it builds the full path with both.

WordPress post Categories panel with only the subcategory ticked, so breadcrumbs show the parent and subcategory

In this example, only Android is ticked, not its parent.

For the category to appear in the web address at all, go to Settings > Permalinks and choose a custom structure that includes %category%, for example:

/%category%/%postname%/

Changing old posts

Changing an older post’s category changes its web address, so any links to it will break. If the post already gets visits, set up a redirect from the old address to the new one with a plugin like Rank Math or Redirection.