There are a lot of articles (old one, though because I use new WordPress 5.3.1) about how to include category and subcategory in WordPress URLs. I followed those articles (pretty much are the same), but something is wrong.
I checked Settings > Permalinks > Custom Structure and added /%category%/%postname%/
, and all I can see is parent category, not child category.
It's the same issue whatever template I use, so I guess template is not a problem.
What is wrong?
There are a lot of articles (old one, though because I use new WordPress 5.3.1) about how to include category and subcategory in WordPress URLs. I followed those articles (pretty much are the same), but something is wrong.
I checked Settings > Permalinks > Custom Structure and added /%category%/%postname%/
, and all I can see is parent category, not child category.
It's the same issue whatever template I use, so I guess template is not a problem.
What is wrong?
Good question.
WordPress determines the permalink by finding the category closest to the root.
So, for your case, be sure to select only the child category.