[wp-trac] [WordPress Trac] #13176: wp_list_categories pad_counts shows zero for parent term with custom hierarchical taxonomy
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 29 23:48:55 UTC 2012
#13176: wp_list_categories pad_counts shows zero for parent term with custom
hierarchical taxonomy
-------------------------------+------------------------------
Reporter: michaelh | Owner: filosofo
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.0
Severity: normal | Resolution: worksforme
Keywords: reporter-feedback |
-------------------------------+------------------------------
Changes (by wonderboymusic):
* keywords: reporter-feedback needs-patch => reporter-feedback
* status: reopened => closed
* resolution: => worksforme
Comment:
I cannot reproduce this - I added 3 terms (term_id = 10, 11, 12) 12 is
child of 11 is child of 10:
{{{
add_action( 'init', function () {
register_taxonomy( 'custom_thing', 'post', array( 'hierarchical'
=> true, 'pad_counts' => 1, 'labels' => array( 'name' => 'Custom Thing' )
) );
wp_list_categories(
'show_count=1&pad_counts=1&taxonomy=custom_thing&include=10,11,12' );
exit();
} );
}}}
Works just fine
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13176#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list