I tried the custom structure /%category%/%postname%/ and it worked for me. I have a post with the title Elephant in the category DH, and its URL is now like:
The category base is not useful for this. It is used to change the URL for category archives. For example, in my site DH is a Source, so I have changed the category base to source. This means that the category archive for DH now has the URL:
You could make a custom template for the parent page and generatic an automatic list of child pages there.
This would work well for relatively small amounts of content (ie not hundreds and hundreds of posts)
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘How to get category slug in url’ is closed to new replies.