- This topic has 1 reply, 1 voice, and was last updated 9 months, 3 weeks ago by .
-
Topic
-
I have just updated Meta Box to 5.2.8 and fields using ‘include’ are no longer appearing. code below:
$meta_boxes[] = array( 'id' => $prefix . 'home_header_img', 'title' => esc_html__( 'Header image', 'textdomain' ), 'description' => esc_html__( 'Appears above the page title above main copy', 'textdomain' ), 'post_types' => array( 'post', 'page' ), 'context' => 'normal', 'priority' => 'high', 'include' => array( 'template' => array( 'page-templates/template-home.php' ), ), 'fields' => array( array( 'name' => esc_html__( 'Image', 'textdomain' ), 'id' => $prefix . "header_img", 'desc' => esc_html__( 'Appears above the page title above main copy', 'textdomain' ), 'type' => 'image_advanced', ), ), );
If I remove the include bit, the boxes appear:
'include' => array( 'template' => array( 'page-templates/template-home.php' ), ),
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.