Advertisement
Guest User

Untitled

a guest
Feb 12th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.31 KB | None | 0 0
  1. register_field_group(array(
  2.     'id' => 'acf_boxes',
  3.     'title' => 'Boxes',
  4.     'fields' => array(
  5.         array(
  6.             'key' => 'field_52ba5d6289438',
  7.             'label' => 'Boxes',
  8.             'name' => 'subpage_boxes',
  9.             'type' => 'repeater',
  10.             'required' => 1,
  11.             'sub_fields' => array(
  12.                 array(
  13.                     'key' => 'field_52ba5da289439',
  14.                     'label' => 'Title',
  15.                     'name' => 'box_title',
  16.                     'type' => 'text',
  17.                     'required' => 1,
  18.                     'column_width' => '',
  19.                     'default_value' => '',
  20.                     'placeholder' => '',
  21.                     'prepend' => '',
  22.                     'append' => '',
  23.                     'formatting' => 'none',
  24.                     'maxlength' => '',
  25.                 ),
  26.                 array(
  27.                     'key' => 'field_52ba64a564a1b',
  28.                     'label' => 'Text',
  29.                     'name' => 'box_text',
  30.                     'type' => 'wysiwyg',
  31.                     'required' => 1,
  32.                     'column_width' => '',
  33.                     'default_value' => '',
  34.                     'toolbar' => 'basic',
  35.                     'media_upload' => 'no',
  36.                 ),
  37.             ),
  38.             'row_min' => 4,
  39.             'row_limit' => '',
  40.             'layout' => 'row',
  41.             'button_label' => 'Add Box',
  42.         ),
  43.     ),
  44.     'location' => array(
  45.         array(
  46.             array(
  47.                 'param' => 'page_template',
  48.                 'operator' => '==',
  49.                 'value' => 'subpage-boxes.php',
  50.                 'order_no' => 0,
  51.                 'group_no' => 0,
  52.             ),
  53.         ),
  54.     ),
  55.     'options' => array(
  56.         'position' => 'normal',
  57.         'layout' => 'default',
  58.         'hide_on_screen' => array(),
  59.     ),
  60.     'menu_order' => 0,
  61. ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement