It's a Party

Get Headspace to show up on Custom Posts

It's a PartySo you have started using custom posts you might even have installed the most excellent plugin “post type switcher” that will help you move your posts from regular to your new custom types. But since you are a headspace 2 user you may have noticed that you no longer have the headspace block in your posting area well how do you get it there? Well it’s pretty simple just follow along.

First open the file in wp-content>>plugins>>headspace2>>headspace.php once you have opened headspace.php proceed to line 486 and add the needed number of lines to the code for however many custom post types you are using. Be aware that this will break upon an update from headspace unless they start supporting custom post types.

if ( function_exists( ‘add_meta_box' ) ) {
add_meta_box (‘headspacestuff', __ (‘HeadSpace', ‘headspace'), array (&$this, ‘metabox'), ‘post', ‘normal', ‘high');
add_meta_box (‘headspacestuff', __ (‘HeadSpace', ‘headspace'), array (&$this, ‘metabox'), ‘page', ‘normal', ‘high');
add_meta_box (‘headspacestuff', __ (‘HeadSpace', ‘headspace'), array (&$this, ‘metabox'), ‘custom_post_type_1′, ‘normal', ‘high'); //custom post type
add_meta_box (‘headspacestuff', __ (‘HeadSpace', ‘headspace'), array (&$this, ‘metabox'), ‘custom_post_type_2‘, ‘normal', ‘high'); //custom post type
add_meta_box (‘tagsdiv',        __ (‘Tags', ‘headspace'),      array (&$this, ‘metabox_tags'), ‘page', ‘side', ‘high');

Don't forget to change the custom post type name to the one you are using as your custom post type name.