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?

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/include-a-pages-category-in-its-url/">

Include a page's "category" in its URL</a>
0
, , , lonix 8 months 0 Answers 33 views 0

Leave an answer