Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WPAlchemy - Issue getting value pulled into page template
// add Gallery Images custom meta box
$mgallery = new WPAlchemy_MetaBox(array
'id' => '_gallery_main',
'title' => 'Gallery Images',
'types' => array('gallery_main'), // added only for pages
'context' => 'normal', // same as above, defaults to "normal"
'priority' => 'high', // same as above, defaults to "high"
'template' => TEMPLATEPATH . '/custom/gallery_images_repeatingfields.php',
'hide_editor' => TRUE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment