[wp-hackers] where does the custom taxonomy info is kept?
Rafael Ehlers
rafaehlers at gmail.com
Sat Apr 7 00:36:30 UTC 2012
And associate with a post or CPT...
On Fri, Apr 6, 2012 at 9:35 PM, Rafael Ehlers <rafaehlers at gmail.com> wrote:
> It's registered, it will only get stored as soon as you include some term
> in that taxonomy.
>
>
> On Fri, Apr 6, 2012 at 9:32 PM, Haluk Karamete <halukkaramete at gmail.com>wrote:
>
>> I just run this test code ( the sample code right from the codex )
>>
>> $labels = array(
>> 'name' => _x( 'Genres', 'taxonomy general name' ),
>> 'singular_name' => _x( 'Genre', 'taxonomy singular name' ),
>> 'search_items' => __( 'Search Genres' ),
>> 'all_items' => __( 'All Genres' ),
>> 'parent_item' => __( 'Parent Genre' ),
>> 'parent_item_colon' => __( 'Parent Genre:' ),
>> 'edit_item' => __( 'Edit Genre' ),
>> 'update_item' => __( 'Update Genre' ),
>> 'add_new_item' => __( 'Add New Genre' ),
>> 'new_item_name' => __( 'New Genre Name' ),
>> 'menu_name' => __( 'Genre' ),
>> );
>>
>> register_taxonomy('genre',array('book'), array(
>> 'hierarchical' => true,
>> 'labels' => $labels,
>> 'show_ui' => true,
>> 'query_var' => true,
>> 'rewrite' => array( 'slug' => 'genre' ),
>> ));
>>
>>
>> and then I run this
>>
>> $taxonomies=get_taxonomies('','names');
>> foreach ($taxonomies as $taxonomy ) {
>> echo '<p>'. $taxonomy. '</p>';
>> }
>>
>>
>> And as result, expectedly, I get to see the newly created custom taxonomy
>> "genre" reported along with the other ones such as link_category,
>> post_format and so on.
>>
>> But I am unable to spot any trace of it whatsoever in any of the wordpress
>> tables! The word genre does not exist.
>>
>> Where does the newly created custom taxonomy data get stored?
>>
>> Mind due that there are no terms associated under it yet.
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>
>
More information about the wp-hackers
mailing list