[wp-hackers] get_terms not working properly when using hierachical taxonomies

Mark Jaquith markjaquith at gmail.com
Wed Feb 2 19:32:00 UTC 2011

2011/2/2 César Saiz <emperzuco at gmail.com>:
> It should be so simple as querying get_terms() with the args hide_empty = 1
> and hierarchical = 1 (default), but the mix doesn't seem to be working
> properly. Instead, it returns me the terms which have posts and the terms
> whose direct childrens have posts, but if the post is into a child of a
> child, I got nothing.
> Any idea on how to get this working properly?
> This ticket seems to be about something closely related, but no specifics
> are given: http://core.trac.wordpress.org/ticket/16240

Monitor that ticket. I'll be tackling that issue in the 3.2 development cycle.

Mark Jaquith
• http://markjaquith.com/

More information about the wp-hackers mailing list