Adding meta box to admin side of specific page template
-
Hi
Is there a way with super cpt to add a meta box to a specific page template?
I have tried a few thing including using the is_page_template()
I appreciate any help pointing me in the right direction.
This is what I have
add_action('after_setup_theme','trusted_page_sup');
function trusted_page_sup(){$tsuppliers2 = new Super_Custom_Post_Meta( 'page' );
$tsuppliers2->add_meta_boxes(array(
'id' => 'Contact-details',
'context' => 'side',
'priority'=> 'high',
'post-type' => 'page',
'fields' => array('base' => array('type'=>'select', 'options' => array('vermont','cape town')),
'Address' => array( 'type' => 'textarea' ),
'Tel:' => array('type' => 'text'),
'Fax' => array('type' => 'text'),
'Email' => array('type' => 'text'),
'Website' => array('type' => 'text'),
)
));}
- The topic ‘Adding meta box to admin side of specific page template’ is closed to new replies.