Include and exclude nested groups

Support MB Include Exclude Include and exclude nested groupsResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22586
    Vladimir MujakovicVladimir Mujakovic
    Participant

    I want to exclude/include nested groups, can this be done?

    given this metabox structure:

    $meta_boxes[] = array(
            'title'      => 'Page Section Selector',
            'post_types' => array('page'),
            'fields' => array(
                array(
                    'id'            => 'section_control',
                    'type'          => 'group',
                     ...
                    'add_button' => '+ Add Section',
                    'fields' => array(
                       array(...),
                       array(
                           'id'            => 'cta_section',
                           'type'          => 'group',
                           'include' => array('front-page.php')
                           ...
                           'fields' => array(...)
                       ),
                       array(...),
                       array(...),
                       array(
                           'id'            => 'map_section',
                           'type'          => 'group',
                           'include' => array('page.php')
                           ...
                           'fields' => array(...)
                       ),
                    )
                ),
             )
          )
    #22587
    Vladimir MujakovicVladimir Mujakovic
    Participant

    Nvm, i solved this in a different way.

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