Adding post tags to custom post types

I actually managed to figure it out and did it just beside the code of my custom post type. Like Fred suggested, I need to add a taxonomy to my custom post type called “tag”. And this is the way to do it: register_taxonomy ( ‘myposttype-tag’, array(‘myposttype’), array ( ‘hierarchical’ => false, ‘labels’ => array … Read more

Changing the priority of a custom taxonomy’s metabox

As is often the case in WP, there are a number of ways to attack this problem. Here’s one possible way: function my_meta_box_order() { global $wp_meta_boxes; $genre = $wp_meta_boxes[‘post’][‘side’][‘core’][‘genrediv’]; unset($wp_meta_boxes[‘post’][‘side’][‘core’][‘genrediv’]); $wp_meta_boxes[‘post’][‘side’][‘core’] = array(‘genrediv’ => $genre) + $wp_meta_boxes[‘post’][‘side’][‘core’]; } add_action(‘add_meta_boxes_post’, ‘my_meta_box_order’); # We’re hooking into: do_action(‘add_meta_boxes_’ . $post_type, $post); $wp_meta_boxes holds all the meta box information. … Read more