sugardaddy
Member
Posted 6 months ago #
I'm trying to achieve something that sounds pretty easy to understand, but... whatever I do, it doesn't work. Let me explain it :
In my archive template, I want to display the name of the current category. That's easy and I can do that.
But I also want to display the parent category name, if there's one.
And... I don't want to display the category name twice when the current category is a top level one.
Thanks a lot for your help !
sugardaddy
Member
Posted 6 months ago #
I did... But if I use it with a separator, I get the separator after the last (current) category, and that's not pretty ;-)
I need help because I tried many things before.
sugardaddy
Member
Posted 6 months ago #
Well... it gave me an idea and that did the trick !
The separator is now wrap in a span and I hide it with css (last-child).
Sometimes, we need to talk about problems to find the answer quicker.
Thanks !