Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

add tags to custom post type

function reg_tag() {
     register_taxonomy_for_object_type('post_tag', 'CUSTOM_POST_TYPE'); // name of your post 
}
add_action('init', 'reg_tag');


// add this to your custom plugin folder or into your function.php file under theme folder


 
PREVIOUS NEXT
Tagged: #add #tags #custom #post #type
ADD COMMENT
Topic
Name
3+9 =