display child category name and link to cat page
-
hi
i have a site with say 3 categories, two are children of the other
e.g.
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
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘display child category name and link to cat page’ is closed to new replies.