Include a page’s “category” in its URL

Question

My site is for landing pages, not a blog – so it contains pages, not posts.

I want URLs like this:

https://www.example.com/shoes/nike-sport-super-red

https://www.example.com/shoes/adidas-running-black-mens

So a page’s category would be “shoes” and the slug would be “nike-sport-super-red”.

What I did:

  • WordPress doesn’t support categories/tags for pages, so I installed a plugin that adds this functionality
  • I went to Settings > Permalinks and changed it to a custom structure: /%category%/%postname%/

But my URLs still do not show the category, only the slug:

https://www.example.com/nike-sport-super-red

Is there some way to do this?

0
, , , lonix 3 weeks 0 Answers 15 views 0

Leave an answer