X

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');
?>

Comments  Leave a Reply

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!