Include/Exclude broken with update

Support MB Include Exclude Include/Exclude broken with updateResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18926
    chillifishchillifish
    Participant

    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' ),
            ),
    
    #18927
    chillifishchillifish
    Participant

    Apologies, it seems the template file names have been changed, so problem solved. Can't see how to delete the post.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.