Add tag selection to custom post type

Adding this wordpress snippet to the functions.php will enable tag selection within the editor for that custom post type. Don’t forget to change the CUSTOM_POST_TYPE to the name of the custom post type you created.



function reg_tag() {
register_taxonomy_for_object_type('post_tag', 'CUSTOM_POST_TYPE');
add_action('init', 'reg_tag');

Be Sociable, Share!

Leave a comment