black friday sale

Custom Fields
Re-Envisioned
Support Meta Box Include Exclude Include and exclude nested groups

  • Creator
    Topic
  • #22586
    Resolved Vladimir 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(...)
                       ),
                    )
                ),
             )
          )
Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #22587
    Vladimir Mujakovic
    Participant

    Nvm, i solved this in a different way.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.