[wp-trac] [WordPress Trac] #41813: get_terms is hiding taxonomies that are not empty

WordPress Trac noreply at wordpress.org
Wed Sep 6 16:55:08 UTC 2017


#41813: get_terms is hiding taxonomies that are not empty
-------------------------------+------------------------------
 Reporter:  subrataemfluence   |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Taxonomy           |     Version:  4.8.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by boonebgorges):

 * keywords:   => reporter-feedback


Comment:

 `hide_empty` checks against the `term_taxonomy_id.count` column. My guess
 is that the values in this column are '0' for the missing terms. It's
 possible that this is because you're missing some necessary logic for
 updating term counts. Can you share the code you're using to register your
 media_content_category taxonomy? Is it associated with a custom post type,
 or some other type of object? The `update_term_callback` param for
 `register_taxonomy()` might be where you start your debugging.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41813#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list