I have 3 category parents with several children in each.
For a single entry product page, I would like to list which categories the product belongs to (children only), with a single header for each category parent:
Publisher: (parent id 22) Designer: (parent id 45) Genre: (parent id 8)
There could be multiple children categories for Designer and Genre.
Ideally I would like to use conditional statements that spit out:
if publisher is checked then <p>Publisher: <a href="#">publishercategoryname</a> </p> if designer is checked then <p>Publisher: <a href="#">designercategoryname1</a>, <a href="#">designercategoryname2</a>, <a href="#">designercategoryname3</a> </p> if genre is checked then <p>Genre(s): <a href="#">genrecategoryname1</a>, <a href="#">genrecategoryname2</a>, <a href="#">genrecategoryname3</a> </p>
I would like the parent to show up just once, with the children category names nested.
Any help would be greatly appreciated.