- This topic has 1 reply, 2 voices, and was last updated 2 years ago by .
I am attempting to show a metabox only on a specified template, I have added the code as shown in the demo, but the metabox will not show under any conditions.
$meta_boxes = array( 'title' => esc_html__( 'Carousel', 'metabox-online-generator' ), 'pages' => array('page'), 'show' => array( 'template' => array('../templates/page-product-tech-template.php'), ), 'fields' => array(); );
The file I am targeting is in the adjacent folder. So when i’m specifying the path I am backing out once and entering the templates directory, is this correct?
- You must be logged in to reply to this topic.