Adding Post Settings Metabox to Custom Post Types

Posted in: Newsmag
Post count: 16

Hello!
I’m trying to add the Post Settings section to a CPT within my site. I have a mildly customized set of posts that I’d like to format similarly to all the other posts within the theme. However, I can’t find where the add_meta_box would go within this theme–or how the theme’s Post Settings section could be glued into it. Any hints would be welcomed!
Thanks!

Post count: 6600

Hi,

Add your CPT here: http://screencast.com/t/WKImyNsB use the slug. This will add the post settings meta on your post type.

Thanks

Post count: 16

Cool. This works like a charm!
Is there a Chile Theme-friendly way to apply this?
Thank you!

Post count: 16

Uh… that’s supposed to be “Child Theme-friendly way to apply this…”

Post count: 17

Hi, I once dit it this way in the child theme:

//functions.php

add_action( 'after_setup_theme', 'my_change_metabox' );
function my_change_metabox ()
{
if (is_admin()) {
$my_td_metabox_theme_settings = new WPAlchemy_MetaBox(array(
'id' => 'td_post_theme_settings',
'title' => 'Post settings',
'types' => array('post','page','cpt'),
'priority' => 'high',
'template' => get_template_directory() . '/includes/wp_booster/wp-admin/content-metaboxes/td_set_post_settings.php',
));
}
}

regards

Post count: 16

Genius! This seems to work fine. Thank you.

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newsmag’ is closed to new topics and replies.