Skip to content

Instantly share code, notes, and snippets.

@jrstaatsiii
Last active July 10, 2016 21:42
Show Gist options
  • Save jrstaatsiii/9ab1cce622b53b59c8d9e508be9fbb24 to your computer and use it in GitHub Desktop.
Save jrstaatsiii/9ab1cce622b53b59c8d9e508be9fbb24 to your computer and use it in GitHub Desktop.
Example Flexible Content Field Group
<?php
if( function_exists('acf_add_local_field_group') ):
acf_add_local_field_group(array (
'key' => 'group_5436e219da3a2',
'title' => 'Layout Builder',
'fields' => array (
array (
'key' => 'field_5436e27cb585e',
'label' => 'Content Blocks',
'name' => 'content_blocks',
'type' => 'flexible_content',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'button_label' => 'Add Content Block',
'min' => '',
'max' => '',
'layouts' => array (
array (
'key' => '5436e2927dbcf',
'name' => 'visual_editor',
'label' => 'Visual Editor',
'display' => 'block',
'sub_fields' => array (
array (
'key' => 'field_5436e2a0b585f',
'label' => 'Visual Editor',
'name' => 'visual_editor',
'type' => 'wysiwyg',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'tabs' => 'all',
'toolbar' => 'full',
'media_upload' => 1,
),
array (
'key' => 'field_546e3e5a2690d',
'label' => 'HTML Classes',
'name' => 'additional_classes',
'type' => 'text',
'instructions' => 'include additional classes for targeting with <code>CSS</code>',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_546e3ea72690e',
'label' => 'HTML ID',
'name' => 'id',
'type' => 'text',
'instructions' => 'Include an optional <code>ID</code>. This should be unique, and not used elsewhere on this page.',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
),
'min' => '',
'max' => '',
),
array (
'key' => '5436e2c3b5860',
'name' => 'headline',
'label' => 'Headline',
'display' => 'block',
'sub_fields' => array (
array (
'key' => 'field_5436e2cdb5861',
'label' => 'Headline',
'name' => 'headline',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_54372fb86abdd',
'label' => 'Background Color',
'name' => 'background_color',
'type' => 'select',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array (
'Tan' => 'Tan',
'Brown' => 'Brown',
),
'default_value' => array (
),
'allow_null' => 0,
'multiple' => 0,
'ui' => 0,
'ajax' => 0,
'placeholder' => '',
'disabled' => 0,
'readonly' => 0,
),
array (
'key' => 'field_546e5576a2c7a',
'label' => 'HTML Classes',
'name' => 'additional_classes',
'type' => 'text',
'instructions' => 'include additional classes for targeting with <code>CSS</code>',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_546e55d3a2c7b',
'label' => 'HTML ID',
'name' => 'id',
'type' => 'text',
'instructions' => 'Include an optional <code>ID</code>. This should be unique, and not used elsewhere on this page.',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
),
'min' => '',
'max' => '',
),
array (
'key' => '5436e2d9b5862',
'name' => 'media',
'label' => 'Media',
'display' => 'block',
'sub_fields' => array (
array (
'key' => 'field_54e78a3b14041',
'label' => 'Headline',
'name' => 'headline',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_5436e2e0b5863',
'label' => 'Choose Media Type',
'name' => 'choose_media_type',
'type' => 'select',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array (
'Photo' => 'Photo',
'Video' => 'Video',
'Gallery' => 'Gallery',
),
'default_value' => array (
'Photo' => 'Photo',
),
'allow_null' => 0,
'multiple' => 0,
'ui' => 0,
'ajax' => 0,
'placeholder' => '',
'disabled' => 0,
'readonly' => 0,
),
array (
'key' => 'field_548a2b8142af5',
'label' => 'Gallery Display',
'name' => 'gallery_display',
'type' => 'select',
'instructions' => '',
'required' => 0,
'conditional_logic' => array (
array (
array (
'field' => 'field_5436e2e0b5863',
'operator' => '==',
'value' => 'Gallery',
),
),
),
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array (
'Thumbnails' => 'Thumbnails',
'Modal Gallery' => 'Modal Gallery',
),
'default_value' => array (
),
'allow_null' => 0,
'multiple' => 0,
'ui' => 0,
'ajax' => 0,
'placeholder' => '',
'disabled' => 0,
'readonly' => 0,
),
array (
'key' => 'field_5436e317b5865',
'label' => 'Image',
'name' => 'image',
'type' => 'image',
'instructions' => '',
'required' => 0,
'conditional_logic' => array (
array (
array (
'field' => 'field_5436e2e0b5863',
'operator' => '==',
'value' => 'Photo',
),
),
),
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'return_format' => 'array',
'preview_size' => 'large',
'library' => 'all',
'min_width' => 0,
'min_height' => 0,
'min_size' => 0,
'max_width' => 0,
'max_height' => 0,
'max_size' => 0,
'mime_types' => '',
),
array (
'key' => 'field_546e7e2ce3ec4',
'label' => 'Image Gallery',
'name' => 'gallery',
'type' => 'gallery',
'instructions' => '',
'required' => 0,
'conditional_logic' => array (
array (
array (
'field' => 'field_5436e2e0b5863',
'operator' => '==',
'value' => 'Gallery',
),
),
),
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'min' => '',
'max' => '',
'preview_size' => 'thumbnail',
'library' => 'all',
'min_width' => 0,
'min_height' => 0,
'min_size' => 0,
'max_width' => 0,
'max_height' => 0,
'max_size' => 0,
'mime_types' => '',
'insert' => 'append',
),
array (
'key' => 'field_546e7eeef9b7c',
'label' => 'Thumbnails Per Row',
'name' => 'thumbnails_per_row',
'type' => 'select',
'instructions' => '',
'required' => 0,
'conditional_logic' => array (
array (
array (
'field' => 'field_5436e2e0b5863',
'operator' => '==',
'value' => 'Gallery',
),
array (
'field' => 'field_548a2b8142af5',
'operator' => '==',
'value' => 'Thumbnails',
),
),
),
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array (
2 => 2,
3 => 3,
4 => 4,
5 => 5,
6 => 6,
),
'default_value' => array (
'' => '',
),
'allow_null' => 0,
'multiple' => 0,
'ui' => 0,
'ajax' => 0,
'placeholder' => '',
'disabled' => 0,
'readonly' => 0,
),
array (
'key' => 'field_5436e32db5866',
'label' => 'Video',
'name' => 'video',
'type' => 'oembed',
'instructions' => '',
'required' => 0,
'conditional_logic' => array (
array (
array (
'field' => 'field_5436e2e0b5863',
'operator' => '==',
'value' => 'Video',
),
),
),
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'width' => '',
'height' => '',
),
array (
'key' => 'field_546e563ba2c7c',
'label' => 'HTML Classes',
'name' => 'additional_classes',
'type' => 'text',
'instructions' => 'include additional classes for targeting with <code>CSS</code>',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_54374953d7964',
'label' => 'HTML ID',
'name' => 'id',
'type' => 'text',
'instructions' => 'Include an optional <code>ID</code>. This should be unique, and not used elsewhere on this page.',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
),
'min' => '',
'max' => '',
),
array (
'key' => '54e77e6c877a8',
'name' => 'parallax_image',
'label' => 'Parallax Image',
'display' => 'block',
'sub_fields' => array (
array (
'key' => 'field_54e77e9f877a9',
'label' => 'Image',
'name' => 'image',
'type' => 'image',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'return_format' => 'array',
'preview_size' => 'large',
'library' => 'all',
'min_width' => 0,
'min_height' => 0,
'min_size' => 0,
'max_width' => 0,
'max_height' => 0,
'max_size' => 0,
'mime_types' => '',
),
array (
'key' => 'field_54e77ec4877aa',
'label' => 'HTML Classes',
'name' => 'additional_classes',
'type' => 'text',
'instructions' => 'include additional classes for targeting with <code>CSS</code>',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_54e77ee3877ab',
'label' => 'HTML ID',
'name' => 'html_id',
'type' => 'text',
'instructions' => 'Include an optional <code>ID</code>. This should be unique, and not used elsewhere on this page.',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
),
'min' => '',
'max' => '',
),
array (
'key' => '5436e37ab5867',
'name' => 'columns',
'label' => 'Columns',
'display' => 'block',
'sub_fields' => array (
array (
'key' => 'field_5436e61f994c2',
'label' => 'Style',
'name' => 'style',
'type' => 'radio',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array (
'Icons' => 'Icons',
'Featured' => 'Featured',
'Facts & Figures' => 'Facts & Figures',
),
'other_choice' => 0,
'save_other_choice' => 0,
'default_value' => '',
'layout' => 'horizontal',
'allow_null' => 0,
),
array (
'key' => 'field_54bdc74a97adb',
'label' => 'Headline',
'name' => 'headline',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => array (
array (
array (
'field' => 'field_5436e61f994c2',
'operator' => '==',
'value' => 'Facts & Figures',
),
),
),
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => 'Facts & Figures',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_5436e381b5868',
'label' => 'Column List',
'name' => 'column_list',
'type' => 'repeater',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'min' => '',
'max' => 4,
'layout' => 'row',
'button_label' => 'Add Column',
'sub_fields' => array (
array (
'key' => 'field_5436e405b586a',
'label' => 'Headline',
'name' => 'headline',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_5436e411b586b',
'label' => 'Image',
'name' => 'image',
'type' => 'image',
'instructions' => '',
'required' => 0,
'conditional_logic' => array (
array (
array (
'field' => 'field_5436e61f994c2',
'operator' => '!=',
'value' => 'Facts & Figures',
),
),
),
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'return_format' => 'array',
'preview_size' => 'thumbnail',
'library' => 'all',
'min_width' => 0,
'min_height' => 0,
'min_size' => 0,
'max_width' => 0,
'max_height' => 0,
'max_size' => 0,
'mime_types' => '',
),
array (
'key' => 'field_5436e44ab586c',
'label' => 'Visual Editor',
'name' => 'visual_editor',
'type' => 'wysiwyg',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'tabs' => 'all',
'toolbar' => 'full',
'media_upload' => 0,
),
),
'collapsed' => '',
),
array (
'key' => 'field_546e5664a2c7e',
'label' => 'HTML Classes',
'name' => 'additional_classes',
'type' => 'text',
'instructions' => 'include additional classes for targeting with <code>CSS</code>',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_546e5651a2c7d',
'label' => 'HTML ID',
'name' => 'id',
'type' => 'text',
'instructions' => 'Include an optional <code>ID</code>. This should be unique, and not used elsewhere on this page.',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
),
'min' => '',
'max' => '',
),
array (
'key' => '5488e2813465a',
'name' => 'accordion',
'label' => 'Accordion',
'display' => 'row',
'sub_fields' => array (
array (
'key' => 'field_5488e33f3465b',
'label' => 'Headline',
'name' => 'headline',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_5488e3483465c',
'label' => 'Accordion List',
'name' => 'accordion_list',
'type' => 'repeater',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'min' => '',
'max' => '',
'layout' => 'row',
'button_label' => 'Add Item',
'sub_fields' => array (
array (
'key' => 'field_5488e36f3465d',
'label' => 'Headline',
'name' => 'headline',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_5488e3793465e',
'label' => 'Icon',
'name' => 'icon',
'type' => 'image',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'return_format' => 'array',
'preview_size' => 'thumbnail',
'library' => 'all',
'min_width' => 0,
'min_height' => 0,
'min_size' => 0,
'max_width' => 0,
'max_height' => 0,
'max_size' => 0,
'mime_types' => '',
),
array (
'key' => 'field_5488e3843465f',
'label' => 'Visual Editor',
'name' => 'visual_editor',
'type' => 'wysiwyg',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'tabs' => 'all',
'toolbar' => 'full',
'media_upload' => 1,
),
),
'collapsed' => '',
),
array (
'key' => 'field_5488e3da34661',
'label' => 'HTML Classes',
'name' => 'additional_classes',
'type' => 'text',
'instructions' => 'include additional classes for targeting with <code>CSS</code>',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_5488e3cf34660',
'label' => 'HTML ID',
'name' => 'id',
'type' => 'text',
'instructions' => 'include additional classes for targeting with <code>CSS</code>
Include an optional <code>ID</code>. This should be unique, and not used elsewhere on this page.',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
),
'min' => '',
'max' => '',
),
array (
'key' => '549b056ddd8c2',
'name' => 'search',
'label' => 'Facet Search',
'display' => 'row',
'sub_fields' => array (
array (
'key' => 'field_549b0595dd8c3',
'label' => 'Headline',
'name' => 'headline',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_549b05afdd8c4',
'label' => 'Search Paramaters',
'name' => '',
'type' => 'checkbox',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array (
'Staff' => 'Staff',
),
'default_value' => array (
'Staff' => 'Staff',
),
'layout' => 'vertical',
'toggle' => 0,
),
array (
'key' => 'field_549b0624dd8c5',
'label' => 'HTML Classes',
'name' => 'additional_classes',
'type' => 'text',
'instructions' => 'include additional classes for targeting with <code>CSS</code>',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_549b0641dd8c6',
'label' => 'HTML ID',
'name' => 'id',
'type' => 'text',
'instructions' => 'Include an optional <code>ID</code>. This should be unique, and not used elsewhere on this page.',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
),
'min' => '',
'max' => '',
),
array (
'key' => '549b5a0a086be',
'name' => 'grid_layout',
'label' => 'Grid Layout',
'display' => 'row',
'sub_fields' => array (
array (
'key' => 'field_549b5bdaba011',
'label' => 'Headline',
'name' => 'headline',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_549b5a16086bf',
'label' => 'Context',
'name' => 'context',
'type' => 'radio',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array (
'News Items' => 'News Items',
'Communities' => 'Communities',
'Stories' => 'Stories',
'Staff' => 'Staff',
'Images' => 'Images',
),
'other_choice' => 0,
'save_other_choice' => 0,
'default_value' => '',
'layout' => 'horizontal',
'allow_null' => 0,
),
array (
'key' => 'field_549b5a9a086c0',
'label' => 'Available News Items',
'name' => 'news_items',
'type' => 'relationship',
'instructions' => '',
'required' => 0,
'conditional_logic' => array (
array (
array (
'field' => 'field_549b5a16086bf',
'operator' => '==',
'value' => 'News Items',
),
),
),
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'post_type' => array (
0 => 'post',
),
'taxonomy' => array (
),
'filters' => array (
0 => 'search',
),
'elements' => array (
0 => 'featured_image',
),
'max' => '',
'return_format' => 'id',
'min' => 0,
),
array (
'key' => 'field_549b5ac0086c1',
'label' => 'Available Communities',
'name' => 'communities',
'type' => 'relationship',
'instructions' => '',
'required' => 0,
'conditional_logic' => array (
array (
array (
'field' => 'field_549b5a16086bf',
'operator' => '==',
'value' => 'Communities',
),
),
),
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'post_type' => array (
0 => 'ewp_community',
),
'taxonomy' => array (
),
'filters' => array (
0 => 'search',
),
'elements' => array (
0 => 'featured_image',
),
'max' => '',
'return_format' => 'id',
'min' => 0,
),
array (
'key' => 'field_549b5aea086c2',
'label' => 'Available Stories',
'name' => 'stories',
'type' => 'relationship',
'instructions' => '',
'required' => 0,
'conditional_logic' => array (
array (
array (
'field' => 'field_549b5a16086bf',
'operator' => '==',
'value' => 'Stories',
),
),
),
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'post_type' => array (
0 => 'ewp_story',
),
'taxonomy' => array (
),
'filters' => array (
0 => 'search',
),
'elements' => array (
0 => 'featured_image',
),
'max' => '',
'return_format' => 'id',
'min' => 0,
),
array (
'key' => 'field_549b5b0a086c3',
'label' => 'Available Staff',
'name' => 'staff',
'type' => 'relationship',
'instructions' => '',
'required' => 0,
'conditional_logic' => array (
array (
array (
'field' => 'field_549b5a16086bf',
'operator' => '==',
'value' => 'Staff',
),
),
),
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'post_type' => array (
0 => 'ewp_staff',
),
'taxonomy' => array (
),
'filters' => array (
0 => 'search',
),
'elements' => array (
0 => 'featured_image',
),
'max' => '',
'return_format' => 'id',
'min' => 0,
),
array (
'key' => 'field_5553d88cef645',
'label' => 'Images',
'name' => 'images',
'type' => 'repeater',
'instructions' => '',
'required' => 0,
'conditional_logic' => array (
array (
array (
'field' => 'field_549b5a16086bf',
'operator' => '==',
'value' => 'Images',
),
),
),
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'min' => '',
'max' => '',
'layout' => 'row',
'button_label' => 'Add Image',
'sub_fields' => array (
array (
'key' => 'field_5553d8a7ef646',
'label' => 'Image',
'name' => 'image',
'type' => 'image',
'instructions' => '',
'required' => 0,
'conditional_logic' => array (
array (
array (
'field' => 'field_549b5a16086bf',
'operator' => '==',
'value' => 'Images',
),
),
),
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'return_format' => 'array',
'preview_size' => 'thumbnail',
'library' => 'all',
'min_width' => '',
'min_height' => '',
'min_size' => '',
'max_width' => '',
'max_height' => '',
'max_size' => '',
'mime_types' => '',
),
array (
'key' => 'field_5553d8b9ef647',
'label' => 'Optional Link',
'name' => 'link',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => array (
array (
array (
'field' => 'field_549b5a16086bf',
'operator' => '==',
'value' => 'Images',
),
),
),
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_5553d8c9ef648',
'label' => 'Link Target',
'name' => 'link_target',
'type' => 'radio',
'instructions' => '',
'required' => 0,
'conditional_logic' => array (
array (
array (
'field' => 'field_549b5a16086bf',
'operator' => '==',
'value' => 'Images',
),
),
),
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array (
'Default' => 'Default',
'New Tab' => 'New Tab',
),
'other_choice' => 0,
'save_other_choice' => 0,
'default_value' => 'Default',
'layout' => 'horizontal',
'allow_null' => 0,
),
),
'collapsed' => '',
),
array (
'key' => 'field_549dea3cc5917',
'label' => 'HTML Classes',
'name' => 'additional_classes',
'type' => 'text',
'instructions' => 'include additional classes for targeting with <code>CSS</code>',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_549dea51c5918',
'label' => 'HTML ID',
'name' => 'id',
'type' => 'text',
'instructions' => 'Include an optional <code>ID</code>. This should be unique, and not used elsewhere on this page.',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
),
'min' => '',
'max' => '',
),
array (
'key' => '54e7c13e007d8',
'name' => 'related_news',
'label' => 'Related News',
'display' => 'row',
'sub_fields' => array (
array (
'key' => 'field_54e7c148007d9',
'label' => 'Headline',
'name' => 'headline',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => 'Related News',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_54e7c15e007da',
'label' => 'News Article',
'name' => 'news_article',
'type' => 'post_object',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'post_type' => array (
0 => 'post',
),
'taxonomy' => array (
),
'allow_null' => 0,
'multiple' => 0,
'return_format' => 'object',
'ui' => 1,
),
array (
'key' => 'field_54e7c18b007db',
'label' => 'HTML Classes',
'name' => 'additional_classes',
'type' => 'text',
'instructions' => 'include additional classes for targeting with <code>CSS</code>',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_54e7c1a9007dc',
'label' => 'HTML ID',
'name' => 'id',
'type' => 'text',
'instructions' => 'Include an optional <code>ID</code>. This should be unique, and not used elsewhere on this page.',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
),
'min' => '',
'max' => '',
),
array (
'key' => '5553c7e13cbac',
'name' => 'form',
'label' => 'Form',
'display' => 'row',
'sub_fields' => array (
array (
'key' => 'field_5553c7f03cbad',
'label' => 'Headline',
'name' => 'headline',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_5553c7fa3cbae',
'label' => 'Choose Form',
'name' => 'choose_form',
'type' => 'radio',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array (
'Contact Form' => 'Contact Form',
'Newsletter Signup' => 'Newsletter Signup',
),
'other_choice' => 0,
'save_other_choice' => 0,
'default_value' => '',
'layout' => 'vertical',
'allow_null' => 0,
),
array (
'key' => 'field_5553c8513cbaf',
'label' => 'HTML Classes',
'name' => 'additional_classes',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
array (
'key' => 'field_5553c85f3cbb0',
'label' => 'HTML ID',
'name' => 'id',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array (
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
'readonly' => 0,
'disabled' => 0,
),
),
'min' => '',
'max' => '',
),
),
),
),
'location' => array (
array (
array (
'param' => 'post_type',
'operator' => '==',
'value' => 'post',
),
),
array (
array (
'param' => 'post_type',
'operator' => '==',
'value' => 'page',
),
),
array (
array (
'param' => 'post_type',
'operator' => '==',
'value' => 'ewp_community',
),
),
array (
array (
'param' => 'post_type',
'operator' => '==',
'value' => 'ewp_story',
),
),
array (
array (
'param' => 'post_type',
'operator' => '==',
'value' => 'ewp_staff',
),
),
),
'menu_order' => 0,
'position' => 'normal',
'style' => 'default',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => array (
0 => 'the_content',
),
'active' => 1,
'description' => '',
));
endif;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment