[wp-hackers] get_categories() question
Scott Bressler
sbressler at gmail.com
Thu Aug 5 06:35:14 UTC 2010
This should be really easy, but I can't figure it out. I'm trying to use
get_categories to list all the top-level categories of a blog.
wp_list_categories, which calls get_categories, allows for a 'depth'
parameter, and it functions as expected. However, get_categories seemingly
doesn't allow for this same parameter. Is there a way to use get_categories
to only get the top-level categories? What about if I wanted to get the
top-level terms of any taxonomy?
Thanks,
Scott
More information about the wp-hackers
mailing list