WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On my site, I am working on categorizing pictures based on what is in them and am having trouble listing the categories that apply to the post. For instance: A post might include a picture of an ice cream cone with three flavors of ice cream.

My category hierarchy for this post might be:

Flavors ->Vanilla, Mint Chip, Chocolate

Style ->Cone

However, I cannot seem to get a list that includes just children of 'flavors' or 'style', without listing all checked categories.

Essentially I am hoping to have two, nicely organized lists, where one lists the flavors and the other lists the style. Just I don't want them both in the same list.

Is this possible?

-get_categories seems to have the proper arguments, but I have not been able to work it out.
-the_category seems like it is close, but it doesn't allow for excluding a particular category from a list

share|improve this question
up vote 0 down vote accepted

Having two separate taxonomies may make sense for you in this case.

share|improve this answer
Oh, wow, I didn't even know that ability existed. I ended up installing a plugin that creates and manages taxonomies. Thank you so much! – Stephen S. May 2 '11 at 14:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.