[wp-trac] [WordPress Trac] #22102: Tags list not displaying programmatically added child tags

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 8 13:41:19 UTC 2012


#22102: Tags list not displaying programmatically added child tags
----------------------------+------------------------------
 Reporter:  capcar          |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  3.4.2
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+------------------------------

Comment (by capcar):

 One thing to note is that in this situation, I've altered the default
 'post_tag' taxonomy to be hierarchical in my functions file:


 {{{
 register_taxonomy(
                         'post_tag',
                         array( 'post','page' ),
                         array(
                                 'hierarchical' => true,
                                 'labels' => array(
                                         'name'                  =>
 _x('Tags', 'taxonomy general name'),
                                         'singular_name'         =>
 _x('Tag', 'taxonomy general name'),
                                         'search_items'  => __('Search
 Tags'),
                                         'popular_items'         =>
 __('Popular Tags'),
                                         'all_items'             => __('All
 Tags'),
                                         'parent_item'           =>
 __('Parent Tag'),
                                         'parent_item_colon' => __('Parent
 Tag:'),
                                         'edit_item'             =>
 __('Edit Tag'),
                                         'update_item'           =>
 __('Update Tag'),
                                         'add_new_item'  => __('Add New
 Tag'),
                                         'new_item_name'         => __('New
 Tag Name')
                                 ),
                                 'query_var' => true,
                                 'rewrite' => array( 'slug' => 'post_tag'
 ),
                         )
                 );
 }}}


 If I switch it back to non-hierarchical, then all tags appear properly in
 the admin menu.

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


More information about the wp-trac mailing list