Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- register_field_group(array(
- 'id' => 'acf_boxes',
- 'title' => 'Boxes',
- 'fields' => array(
- array(
- 'key' => 'field_52ba5d6289438',
- 'label' => 'Boxes',
- 'name' => 'subpage_boxes',
- 'type' => 'repeater',
- 'required' => 1,
- 'sub_fields' => array(
- array(
- 'key' => 'field_52ba5da289439',
- 'label' => 'Title',
- 'name' => 'box_title',
- 'type' => 'text',
- 'required' => 1,
- 'column_width' => '',
- 'default_value' => '',
- 'placeholder' => '',
- 'prepend' => '',
- 'append' => '',
- 'formatting' => 'none',
- 'maxlength' => '',
- ),
- array(
- 'key' => 'field_52ba64a564a1b',
- 'label' => 'Text',
- 'name' => 'box_text',
- 'type' => 'wysiwyg',
- 'required' => 1,
- 'column_width' => '',
- 'default_value' => '',
- 'toolbar' => 'basic',
- 'media_upload' => 'no',
- ),
- ),
- 'row_min' => 4,
- 'row_limit' => '',
- 'layout' => 'row',
- 'button_label' => 'Add Box',
- ),
- ),
- 'location' => array(
- array(
- array(
- 'param' => 'page_template',
- 'operator' => '==',
- 'value' => 'subpage-boxes.php',
- 'order_no' => 0,
- 'group_no' => 0,
- ),
- ),
- ),
- 'options' => array(
- 'position' => 'normal',
- 'layout' => 'default',
- 'hide_on_screen' => array(),
- ),
- 'menu_order' => 0,
- ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement