Permalinks: Having only subcategory as ?tegory% ?
-
Hi guys,
I’m using %category% in my permalinks, to get some more keywords in the URL, rather than a “useless” date
This is the setup I have:
/%year%/%category%/%postname%
I have %year% first as WordPress recommends NOT to use a text string as the first part (some database performance thing later on).
Anyway – it works great, but if I publish a post in the “Sony Ericsson”-subcategory, which is under its parent “Mobiles”, then the permalink will look like this:
/2009/mobiles/sony-ericsson-mobiles/%postname%
I don’t need both “mobiles” (the parent) and “sony-ericsson-mobiles” (subcategory+parent) in the URL, the latter would be enough. The subcategory I posted in was in fact just “Sony Ericsson”, so I assume the “-mobiles” is added because that’s the parent.
Any way to remove the parent categories from %category% and only use the category actually selected for the post?
Thanks!
- The topic ‘Permalinks: Having only subcategory as ?tegory% ?’ is closed to new replies.