[wp-trac] [WordPress Trac] #11847: wp_tag_cloud counts terms attached to future posts when used with custom taxonomies

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 10 03:26:51 UTC 2010


#11847: wp_tag_cloud counts terms attached to future posts when used with custom
taxonomies
--------------------------+-------------------------------------------------
 Reporter:  fwiffo        |        Owner:  filosofo      
     Type:  defect (bug)  |       Status:  reopened      
 Priority:  normal        |    Milestone:  Future Release
Component:  Taxonomy      |      Version:  2.9.1         
 Severity:  normal        |   Resolution:                
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by fwiffo):

 I actually implemented a workaround by adding a filter on get_terms in my
 plugin (eidogo-for-wordpress). When I call wp_tag_cloud I add a parameter
 which the filter looks for. It then does a count for the terms restricting
 post counts the same way the term archive does.

 I've attached the relevant filter function in case it's useful to anyone
 else running into this.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11847#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list