So here’s the scenario, I’m building a theme that would display sub category of a parent post
for Food:
[Food]
->Hotdog
->Eggs
->Fries
for Toys:
[Toys]
->Doll
->Car
->Drums
for People:
[People]
->Mom
->Dad
->Uncle
now I don’t want to display their parent category, just their subcategory (eg Doll, Car, Drums). I’ve looked list_cats() and wp_list_categories() but I can’t figure out how to display it right.
Thanks!
You need to use
get_categories
for that.Update: A more complete example: