Make WordPress Core

Opened 9 years ago

Last modified 8 years ago

#10122 closed task (blessed)

register_taxonomy only for tags, not for categories ? — at Initial Version

Reported by: nicomollet Owned by: filosofo
Milestone: 3.0 Priority: normal
Severity: minor Version: 2.8
Component: Taxonomy Keywords: has-patch
Focuses: Cc:


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

Change History (0)

Note: See TracTickets for help on using tickets.