Add Taxonomies

This let’s you create your own tag-section for your custom post types, which is kind of cool.

Code Snippet:

<?php
function my_taxonomies() {
     register_taxonomy('my_tags', 'post', array('label' => 'My Tags'));
}
add_action( 'init', 'my_taxonomies');
?>

Posted in Posts