[wp-trac] [WordPress Trac] #10122: create metaboxes for hierarchical taxonomies (was: register_taxonomy only for tags, not for categories ?)

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 3 11:16:45 UTC 2009


#10122: create metaboxes for hierarchical taxonomies
-----------------------------+----------------------------------------------
 Reporter:  nicomollet       |       Owner:  filosofo      
     Type:  feature request  |      Status:  new           
 Priority:  normal           |   Milestone:  Future Release
Component:  Taxonomy         |     Version:  2.8           
 Severity:  minor            |    Keywords:  needs-patch   
-----------------------------+----------------------------------------------

Old description:

> WP2.8 new taxonomy features make us create new taxonomies. Example in
> [http://justintadlock.com/archives/2009/05/06/custom-taxonomies-in-
> wordpress-28]
>
> You can make new taxonomy tags "Animals" with this simple line of code :
> {{{
> register_taxonomy( 'animals', 'post', array( 'hierarchical' => false,
> 'label' => 'Animals' ) );
> }}}
>
> But it seems possible to create new taxonomy categories, like "Rating"
> (G, PG, PG-13, R, NC-17) with :
>
> {{{
> register_taxonomy( 'rating', 'post', array('hierarchical' => true,
> 'label' => 'Rating') );
> }}}
>
> This last line of code does nothing at all. It is supposed to work ?
> Maybe it needs to be implemented.
> Thanx

New description:

 edit by dd32:

 The posts page only contains metaboxes for flat taxonomiese (non-
 hierarchical ones). It should also support custom taxonomies which are
 parent-child(hierarchical).

 ----
 original desc from nicomollet:

 WP2.8 new taxonomy features make us create new taxonomies. Example in
 [http://justintadlock.com/archives/2009/05/06/custom-taxonomies-in-
 wordpress-28]

 You can make new taxonomy tags "Animals" with this simple line of code :
 {{{
 register_taxonomy( 'animals', 'post', array( 'hierarchical' => false,
 'label' => 'Animals' ) );
 }}}

 But it seems possible to create new taxonomy categories, like "Rating" (G,
 PG, PG-13, R, NC-17) with :

 {{{
 register_taxonomy( 'rating', 'post', array('hierarchical' => true,
 'label' => 'Rating') );
 }}}

 This last line of code does nothing at all. It is supposed to work ? Maybe
 it needs to be implemented.
 Thanx

--

Comment(by dd32):

 > Any chance of this making it into 2.9?

 I'm working on something like that, but no guarantee's if it'll make it
 into any version.. Is anyone else even attempting that?

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


More information about the wp-trac mailing list