[wp-trac] [WordPress Trac] #32942: Taxomony term list counts do not respect post_type parameter

WordPress Trac noreply at wordpress.org
Thu Jul 9 13:57:50 UTC 2015

#32942: Taxomony term list counts do not respect post_type parameter
 Reporter:  stueynet        |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Taxonomy        |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
 Assuming you have a shared taxonomy, when viewing the post_type specific
 manage terms page, the post_type is not respected in the term counts. So
 if you have 6 posts for post_type 1 and 5 posts in post_type 2 assigned to
 the same taxonomy term (category->news for example), the post count for
 the news term will be 11 even if you are viewing the edit-tags page with
 the post_type set to a specific type.

 So whether you go to


 or go to:


 The term count for each term is the same. When calculating term counts, it
 should take into account the post_type parameter and return counts for
 just that post_type.

 The link in the edit-tags.php list behaves as expected. It links to wp-
 admin/edit.php?category=news&post_type=example which shows just the list
 of example posts in the news category. Its misleading to the user because
 in the taxonomy term list under a specific post type it says there are X
 posts assigned to that term, but when they click the link there displays a
 different number of posts. This is because the term list is displaying the
 count of all posts, regardless of type, that have that term assigned.

Ticket URL: <https://core.trac.wordpress.org/ticket/32942>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list