Permalinks w/ parent ?tegory% only
-
Is there a variable like %category& that gives just the parent category?
I’m building a site for an art gallery and my category structure is something like:
Artwork (parent)
– Abstract (child)
– Figurative (child)
– Drawings (child)
News (parent)
…I’ve set the custom permalink structure to:
/%category%=%postname%which for a post in the Drawings category would deliver a url like:
…/artwork/drawings=post-nameBut I really only want the parent category to be part of the url. Ideally I’d like them to be:
…/artwork=post-name
or
…/news=post-nameOf course it’s possible to set the permalink structure to:
/artwork=%postname%which would be fine except that then posts in News would appear as
…/artwork=post-name
rather than
…/news=post-nameAny ideas?
- The topic ‘Permalinks w/ parent ?tegory% only’ is closed to new replies.