[Resolved] display child category name and link to cat page
i have a site with say 3 categories, two are children of the other
fruit (id 3)
— apples (id 4)
— pears (id 6)
For all posts within the category “apples” I want to display the word “apples” and a link to that category page.
I need some code that says something like “for parent category 3 display the name of it’s children and the relevant link”.
I’ve looked at various functions but none seem to do this? Maybe the nearest is “get_the_category” but I’m unsure how to code it exactly.
Any help gratefully received
- The topic ‘[Resolved] display child category name and link to cat page’ is closed to new replies.