<?php
/**
 * Array that stores the custom fields
 *
 * @package WordPress
 * @subpackage Edition
 * @since Edition 1.0
 */
if(function_exists("register_field_group"))
{
	register_field_group(array (
		'id' => 'acf_custom-category-page',
		'title' => 'Custom Category Page',
		'fields' => array (
			array (
				'key' => 'field_5322538bb4bf4',
				'label' => __('Custom Category Image', 'themewich'),
				'name' => 'custom_category_image',
				'type' => 'image',
				'save_format' => 'url',
				'preview_size' => 'fullslideshow',
				'library' => 'all',
			),
			array (
				'key' => 'field_532253e233fde',
				'label' => __('Use Sections for your Category Page', 'themewich'),
				'name' => 'cat_custom_page',
				'type' => 'radio',
				'instructions' => __('Create a custom page instead of using the default layout?', 'themewich'),
				'choices' => array (
					'no' => __('No', 'themewich'),
					'yes' => __('Yes', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'no',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_53224f8c5339a',
				'label' => __('Sections', 'themewich'),
				'name' => 'sections',
				'type' => 'relationship',
				'instructions' => __('Add sections to your category page instead of using the default page layout. If you need to, you can', 'themewich') . ' <a href="post-new.php?post_type=section">' . __('add more sections', 'themewich') . ' →</a>',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_532253e233fde',
							'operator' => '==',
							'value' => 'yes',
						),
					),
					'allorany' => 'all',
				),
				'return_format' => 'object',
				'post_type' => array (
					0 => 'section',
				),
				'taxonomy' => array (
					0 => 'all',
				),
				'filters' => array (
					0 => 'search',
				),
				'result_elements' => array (
					0 => 'post_type',
					1 => 'post_title',
				),
				'max' => '',
			),
		),
		'location' => array (
			array (
				array (
					'param' => 'ef_taxonomy',
					'operator' => '==',
					'value' => 'all',
					'order_no' => 0,
					'group_no' => 0,
				),
			),
		),
		'options' => array (
			'position' => 'normal',
			'layout' => 'no_box',
			'hide_on_screen' => array (
			),
		),
		'menu_order' => 0,
	));
	register_field_group(array (
		'id' => 'acf_featured',
		'title' => 'Featured',
		'fields' => array (
			array (
				'key' => 'field_532241d73814d',
				'label' => __('Featured', 'themewich'),
				'name' => 'featured',
				'type' => 'radio',
				'instructions' => __('Select if you want to feature this post.', 'themewich'),
				'choices' => array (
					'Yes' => __('Featured', 'themewich'),
					'No' => __('Not Featured', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'No',
				'layout' => 'horizontal',
			),
		),
		'location' => array (
			array (
				array (
					'param' => 'post_type',
					'operator' => '==',
					'value' => 'post',
					'order_no' => 0,
					'group_no' => 0,
				),
			),
		),
		'options' => array (
			'position' => 'normal',
			'layout' => 'default',
			'hide_on_screen' => array (
			),
		),
		'menu_order' => 0,
	));
	register_field_group(array (
		'id' => 'acf_homepage-layout',
		'title' => 'Homepage Layout',
		'fields' => array (
			array (
				'key' => 'field_52f1423c30acf',
				'label' => __('Homepage Layout', 'themewich'),
				'name' => 'homepage_layout',
				'type' => 'radio',
				'instructions' => __('Use the default layout of the page. Choose your options below. To create a custom layout using sections, choose "Custom Layout".', 'themewich'),
				'required' => 1,
				'choices' => array (
					'default' => __('Default Layout', 'themewich'),
					'custom' => __('Custom Layout', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'default',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_52f031017e83d',
				'label' => __('Sections', 'themewich'),
				'name' => 'sections',
				'type' => 'relationship',
				'instructions' => __('To create a custom layout, <a href="post-new.php?post_type=section">create a new section</a> or select and order the sections from the list below. You can even drag and drop the order!', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'custom',
						),
					),
					'allorany' => 'all',
				),
				'return_format' => 'object',
				'post_type' => array (
					0 => 'section',
				),
				'taxonomy' => array (
					0 => 'all',
				),
				'filters' => array (
					0 => 'search',
				),
				'result_elements' => array (
					0 => 'post_type',
					1 => 'post_title',
				),
				'max' => '',
			),
			array (
				'key' => 'field_52f14bd36cc06',
				'label' => __('Edit Section', 'themewich'),
				'name' => '',
				'type' => 'message',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'custom',
						),
					),
					'allorany' => 'all',
				),
				'message' => __('To edit an existing section, select the section you want to edit from your <a href="edit.php?post_type=section"> edit section screen</a>.', 'themewich'),
			),
			array (
				'key' => 'field_5334b24437da6',
				'label' => __('Slideshow Section', 'themewich'),
				'name' => '',
				'type' => 'tab',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
			),
			array (
				'key' => 'field_5334b21c37da5',
				'label' => __('Slideshow Posts', 'themewich'),
				'name' => 'full_width_query_type',
				'type' => 'radio',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'latest' => __('Latest', 'themewich'),
					'featured' => __('Featured', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'featured',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_5334b27637da7',
				'label' => __('Slideshow Taxonomy', 'themewich'),
				'name' => 'full_width_query',
				'type' => 'radio',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'all' => __('All', 'themewich'),
					'category' => __('Category', 'themewich'),
					'tag' => __('Tag', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'all',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_5334b3443247e',
				'label' => __('Slideshow Category', 'themewich'),
				'name' => 'full_width_category',
				'type' => 'taxonomy',
				'instructions' => __('Hold down shift to select more than one.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
						array (
							'field' => 'field_5334b27637da7',
							'operator' => '==',
							'value' => 'category',
						),
					),
					'allorany' => 'all',
				),
				'taxonomy' => 'category',
				'field_type' => 'multi_select',
				'allow_null' => 0,
				'load_save_terms' => 0,
				'return_format' => 'id',
				'multiple' => 0,
			),
			array (
				'key' => 'field_5334bc7f6a2bb',
				'label' => __('Slideshow Tag', 'themewich'),
				'name' => 'full_width_tag',
				'type' => 'taxonomy',
				'instructions' => __('Hold down shift to select more than one.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
						array (
							'field' => 'field_5334b27637da7',
							'operator' => '==',
							'value' => 'tag',
						),
					),
					'allorany' => 'all',
				),
				'taxonomy' => 'post_tag',
				'field_type' => 'multi_select',
				'allow_null' => 0,
				'load_save_terms' => 0,
				'return_format' => 'id',
				'multiple' => 0,
			),
			array (
				'key' => 'field_5340449302dfb',
				'label' => __('Grid Section', 'themewich'),
				'name' => '',
				'type' => 'tab',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
			),
			array (
				'key' => 'field_53404806a8d2b',
				'label' => __('Grid Section Title', 'themewich'),
				'name' => 'grid_section_title',
				'type' => 'text',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => __('Latest Posts', 'themewich'),
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_5340481da8d2c',
				'label' => __('Grid Section Subtitle', 'themewich'),
				'name' => 'grid_section_subtitle',
				'type' => 'text',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => 'Latest posts from our site.',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_534043e42674c',
				'label' => __('Grid Posts', 'themewich'),
				'name' => 'grid_query_type',
				'type' => 'radio',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'latest' => __('Latest', 'themewich'),
					'featured' => __('Featured', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'latest',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_534043f62674d',
				'label' => __('Grid Taxonomy', 'themewich'),
				'name' => 'grid_query',
				'type' => 'radio',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'all' => __('All', 'themewich'),
					'category' => __('Category', 'themewich'),
					'tag' => __('Tag', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'all',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_534044062674e',
				'label' => __('Grid Category', 'themewich'),
				'name' => 'grid_category',
				'type' => 'taxonomy',
				'instructions' => __('Hold down shift to select more than one.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
						array (
							'field' => 'field_534043f62674d',
							'operator' => '==',
							'value' => 'category',
						),
					),
					'allorany' => 'all',
				),
				'taxonomy' => 'category',
				'field_type' => 'multi_select',
				'allow_null' => 0,
				'load_save_terms' => 0,
				'return_format' => 'id',
				'multiple' => 0,
			),
			array (
				'key' => 'field_534044332674f',
				'label' => __('Grid Tag', 'themewich'),
				'name' => 'grid_tag',
				'type' => 'taxonomy',
				'instructions' => __('Hold down shift to select more than one.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
						array (
							'field' => 'field_534043f62674d',
							'operator' => '==',
							'value' => 'tag',
						),
					),
					'allorany' => 'all',
				),
				'taxonomy' => 'post_tag',
				'field_type' => 'multi_select',
				'allow_null' => 0,
				'load_save_terms' => 0,
				'return_format' => 'id',
				'multiple' => 0,
			),
			array (
				'key' => 'field_53404957da3b3',
				'label' => __('Grid Sidebar', 'themewich'),
				'name' => 'grid_sidebar',
				'type' => 'widget_field',
				'instructions' => __('Click widgets you want to include and drag and drop the order. You can add more available widgets in the <a href="widgets.php">Widgets Page</a>.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'sidebar' => 'grid-section-sidebar',
				'inherit_from' => '',
				'menu_location' => '',
			),
			array (
				'key' => 'field_53404a9a3fe16',
				'label' => __('Ad Section', 'themewich'),
				'name' => '',
				'type' => 'tab',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
			),
			array (
				'key' => 'field_53404abc3fe17',
				'label' => __('Ad Type', 'themewich'),
				'name' => 'ad_type',
				'type' => 'radio',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'code' => __('Ad Code', 'themewich'),
					'image' => __('Image Upload', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_53404ae23fe18',
				'label' => __('Ad Code', 'themewich'),
				'name' => 'ad_code',
				'type' => 'textarea',
				'instructions' => __('Copy and paste your ad code here. Recommended size: 728x90 (Leaderboard).', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
						array (
							'field' => 'field_53404abc3fe17',
							'operator' => '==',
							'value' => 'code',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '',
				'maxlength' => '',
				'rows' => '',
				'formatting' => 'html',
			),
			array (
				'key' => 'field_53404b003fe19',
				'label' => __('Ad Image', 'themewich'),
				'name' => 'ad_image',
				'type' => 'image',
				'instructions' => __('Recommended Size 728x90 (leaderboard).', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
						array (
							'field' => 'field_53404abc3fe17',
							'operator' => '==',
							'value' => 'image',
						),
					),
					'allorany' => 'all',
				),
				'save_format' => 'object',
				'preview_size' => 'full',
				'library' => 'all',
			),
			array (
				'key' => 'field_53404b393fe1b',
				'label' => __('Ad URL', 'themewich'),
				'name' => 'ad_url',
				'type' => 'text',
				'instructions' => __('Must begin with http://', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
						array (
							'field' => 'field_53404abc3fe17',
							'operator' => '==',
							'value' => 'image',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_53404f5e19d80',
				'label' => __('Category Feature Section', 'themewich'),
				'name' => '',
				'type' => 'tab',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
			),
			array (
				'key' => 'field_5361679de0077',
				'label' => __('Full Feature Type', 'themewich'),
				'name' => 'full_feature_type',
				'type' => 'radio',
				'choices' => array (
					'category' => __('Link to Category', 'themewich'),
					'tag' => __('Link to Tag', 'themewich'),
					'page' => __('Link to Page', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_536169dae0079',
				'label' => __('Featured Tag', 'themewich'),
				'name' => 'featured_tag_link',
				'type' => 'taxonomy',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_5361679de0077',
							'operator' => '==',
							'value' => 'tag',
						),
					),
					'allorany' => 'all',
				),
				'taxonomy' => 'post_tag',
				'field_type' => 'select',
				'allow_null' => 0,
				'load_save_terms' => 0,
				'return_format' => 'id',
				'multiple' => 0,
			),
			array (
				'key' => 'field_5361699ce0078',
				'label' => __('Featured Category', 'themewich'),
				'name' => 'featured_category_link',
				'type' => 'taxonomy',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_5361679de0077',
							'operator' => '==',
							'value' => 'category',
						),
					),
					'allorany' => 'all',
				),
				'taxonomy' => 'category',
				'field_type' => 'select',
				'allow_null' => 0,
				'load_save_terms' => 0,
				'return_format' => 'id',
				'multiple' => 0,
			),
			array (
				'key' => 'field_53617bbfbe1bd',
				'label' => __('Featured Page', 'themewich'),
				'name' => 'featured_page_link',
				'type' => 'page_link',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_5361679de0077',
							'operator' => '==',
							'value' => 'page',
						),
					),
					'allorany' => 'all',
				),
				'post_type' => array (
					0 => 'post',
					1 => 'page',
				),
				'allow_null' => 0,
				'multiple' => 0,
			),
			array (
				'key' => 'field_53616a2c44a1e',
				'label' => __('Section Background Image', 'themewich'),
				'name' => 'taxonomy_image',
				'type' => 'image',
				'save_format' => 'object',
				'preview_size' => 'fullslideshow',
				'library' => 'all',
			),
			array (
				'key' => 'field_53616a81d1fb2',
				'label' => __('Headline', 'themewich'),
				'name' => 'taxonomy_headline',
				'type' => 'text',
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_53616a99d1fb3',
				'label' => __('SubHeadline', 'themewich'),
				'name' => 'taxonomy_subheadline',
				'type' => 'text',
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_53616aaad1fb4',
				'label' => __('Button Text', 'themewich'),
				'name' => 'taxonomy_button_text',
				'type' => 'text',
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_536d2887f501a',
				'label' => __('Carousel Section', 'themewich'),
				'name' => '',
				'type' => 'tab',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
			),
			array (
				'key' => 'field_536d2b17d1c2d',
				'label' => __('Carousel Section Title', 'themewich'),
				'name' => 'carousel_section_title',
				'type' => 'text',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => 'Latest Posts',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_536d2b3fd1c2e',
				'label' => __('Carousel Section Subtitle', 'themewich'),
				'name' => 'carousel_section_subtitle',
				'type' => 'text',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => 'Latest posts from our site.',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_536d2b64d1c2f',
				'label' => __('Carousel Posts', 'themewich'),
				'name' => 'carousel_query_type',
				'type' => 'radio',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'latest' => __('Latest', 'themewich'),
					'featured' => __('Featured', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'latest',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_536d2bafd1c30',
				'label' => __('Carousel Taxonomy', 'themewich'),
				'name' => 'carousel_query',
				'type' => 'radio',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'all' => __('All', 'themewich'),
					'category' => __('Category', 'themewich'),
					'tag' => __('Tag', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'all',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_536d2be1d1c31',
				'label' => __('Carousel Category', 'themewich'),
				'name' => 'carousel_category',
				'type' => 'taxonomy',
				'instructions' => __('Hold down shift to select more than one.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
						array (
							'field' => 'field_536d2bafd1c30',
							'operator' => '==',
							'value' => 'category',
						),
					),
					'allorany' => 'all',
				),
				'taxonomy' => 'category',
				'field_type' => 'multi_select',
				'allow_null' => 0,
				'load_save_terms' => 0,
				'return_format' => 'id',
				'multiple' => 0,
			),
			array (
				'key' => 'field_536d2c2bd1c32',
				'label' => __('Carousel Tag', 'themewich'),
				'name' => 'carousel_tag',
				'type' => 'taxonomy',
				'instructions' => __('Hold down shift to select more than one.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f1423c30acf',
							'operator' => '==',
							'value' => 'default',
						),
						array (
							'field' => 'field_536d2bafd1c30',
							'operator' => '==',
							'value' => 'tag',
						),
					),
					'allorany' => 'all',
				),
				'taxonomy' => 'post_tag',
				'field_type' => 'multi_select',
				'allow_null' => 0,
				'load_save_terms' => 0,
				'return_format' => 'id',
				'multiple' => 0,
			),
		),
		'location' => array (
			array (
				array (
					'param' => 'page_template',
					'operator' => '==',
					'value' => 'template-home.php',
					'order_no' => 0,
					'group_no' => 0,
				),
			),
		),
		'options' => array (
			'position' => 'normal',
			'layout' => 'default',
			'hide_on_screen' => array (
			),
		),
		'menu_order' => 0,
	));
	register_field_group(array (
		'id' => 'acf_page-options',
		'title' => 'Page Options',
		'fields' => array (
			array (
				'key' => 'field_5340850b1e711',
				'label' => __('Page Subtitle', 'themewich'),
				'name' => 'page_subtitle',
				'type' => 'text',
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_537d06380da4e',
				'label' => __('Breadcrumbs', 'themewich'),
				'name' => 'breadcrumbs',
				'type' => 'radio',
				'instructions' => __('Show breadcrumbs on your page.', 'themewich'),
				'required' => 1,
				'choices' => array (
					'on' => __('On', 'themewich'),
					'off' => __('Off', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'on',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_537d067175da5',
				'label' => __('Right Area Content', 'themewich'),
				'name' => 'right_area_content',
				'type' => 'wysiwyg',
				'instructions' => __('Enter what you want to appear in place of breadcrumbs in the right side of the title.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_537d06380da4e',
							'operator' => '==',
							'value' => 'off',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'toolbar' => 'full',
				'media_upload' => 'yes',
			),
			array (
				'key' => 'field_52f14031b6c42',
				'label' => __('Page Sections', 'themewich'),
				'name' => 'sections',
				'type' => 'relationship',
				'instructions' => __('Select which sections you want to appear on your page. You can drag and drop the order to your liking!', 'themewich'),
				'return_format' => 'object',
				'post_type' => array (
					0 => 'section',
				),
				'taxonomy' => array (
					0 => 'all',
				),
				'filters' => array (
					0 => 'search',
				),
				'result_elements' => array (
					0 => 'post_type',
					1 => 'post_title',
				),
				'max' => '',
			),
		),
		'location' => array (
			array (
				array (
					'param' => 'post_type',
					'operator' => '==',
					'value' => 'page',
					'order_no' => 0,
					'group_no' => 0,
				),
				array (
					'param' => 'page_template',
					'operator' => '!=',
					'value' => 'template-home.php',
					'order_no' => 1,
					'group_no' => 0,
				),
			),
		),
		'options' => array (
			'position' => 'normal',
			'layout' => 'default',
			'hide_on_screen' => array (
			),
		),
		'menu_order' => 0,
	));
	register_field_group(array (
		'id' => 'acf_post-options',
		'title' => 'Post Options',
		'fields' => array (
			array (
				'key' => 'field_53a464fe0fbc4',
				'label' => __('Media Post', 'themewich'),
				'name' => 'media',
				'type' => 'textarea',
				'instructions' => __('Enter a <a href="http://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F" target="_blank">supported url</a>, shortcode or embed code for Video, Audio or any other media. This will replace your featured image on the single page and change your layout to regular width. ', 'themewich'),
				'default_value' => '',
				'placeholder' => 'Enter a URL, Shortcode, or Embed Code. Even add WordPress galleries!',
				'maxlength' => '',
				'rows' => 4,
				'formatting' => 'html',
			),
			array (
				'key' => 'field_530b7106ce6ec',
				'label' => __('Post Subtitle', 'themewich'),
				'name' => 'post_subtitle',
				'type' => 'text',
				'default_value' => '',
				'placeholder' => 'Enter an optional subtitle for your post. Great for SEO.',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_53234fe7b7dd6',
				'label' => __('Customize Post', 'themewich'),
				'name' => 'customize',
				'type' => 'radio',
				'instructions' => __('Customize the items in this post?', 'themewich'),
				'required' => 1,
				'choices' => array (
					1 => __('Yes', 'themewich'),
					0 => __('No', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 0,
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_53dfb9969a6b4',
				'label' => __('Post Layout', 'themewich'),
				'name' => 'post_columns',
				'type' => 'radio',
				'instructions' => __('Select a layout for your post.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_53234fe7b7dd6',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					1 => __('Full Width without Sidebar', 'themewich'),
					2 => __('Regular Width with Sidebar', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 2,
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_53237e2077b2a',
				'label' => __('Image Size', 'themewich'),
				'name' => 'featured_image',
				'type' => 'radio',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_53234fe7b7dd6',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					1 => __('Full Width Image', 'themewich'),
					0 => __('Regular Image', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_53234c9e79355',
				'label' => __('Sharing', 'themewich'),
				'name' => 'sharing',
				'type' => 'radio',
				'instructions' => __('Select if you want the sharing sidebar enabled. This will overwrite the theme options for this post.', 'themewich'),
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_53234fe7b7dd6',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					1 => __('On', 'themewich'),
					0 => __('Off', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 1,
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_53c0529dc5037',
				'label' => __('Author Box', 'themewich'),
				'name' => 'author_box',
				'type' => 'radio',
				'instructions' => __('Select if you want and author box on your post enabled. This will overwrite the theme options for this post.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_53234fe7b7dd6',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					0 => __('Off', 'themewich'),
					1 => __('On', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 0,
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_53234cd779356',
				'label' => __('Related', 'themewich'),
				'name' => 'related',
				'type' => 'radio',
				'instructions' => __('Select if you want related posts enabled. This will overwrite the theme options for this post.', 'themewich'),
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_53234fe7b7dd6',
							'operator' => '==',
							'value' => '1',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					1 => __('On', 'themewich'),
					0 => __('Off', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 1,
				'layout' => 'horizontal',
			),
		),
		'location' => array (
			array (
				array (
					'param' => 'post_type',
					'operator' => '==',
					'value' => 'post',
					'order_no' => 0,
					'group_no' => 0,
				),
			),
		),
		'options' => array (
			'position' => 'normal',
			'layout' => 'default',
			'hide_on_screen' => array (
			),
		),
		'menu_order' => 0,
	));
	register_field_group(array (
		'id' => 'acf_review',
		'title' => 'Review',
		'fields' => array (
			array (
				'key' => 'field_530b7892f8ab5',
				'label' => __('Review Post', 'themewich'),
				'name' => 'review_post',
				'type' => 'radio',
				'instructions' => __('Is this a review post?', 'themewich'),
				'choices' => array (
					'yes' => __('Yes', 'themewich'),
					'no' => __('No', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'no',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_530b86b280cb3',
				'label' => __('Review Placement', 'themewich'),
				'name' => 'review_placement',
				'type' => 'radio',
				'instructions' => __('Select where you want your review to show up.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_530b7892f8ab5',
							'operator' => '==',
							'value' => 'yes',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'bottom' => __('Bottom', 'themewich'),
					'top-bottom' => __('Top and Bottom', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_530b74a3b4508',
				'label' => __('Review Criteria', 'themewich'),
				'name' => 'review_criteria',
				'type' => 'repeater',
				'instructions' => __('Click \'Add Review Criteria\' to add to your review. You can drag and drop the order to your liking.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_530b7892f8ab5',
							'operator' => '==',
							'value' => 'yes',
						),
					),
					'allorany' => 'all',
				),
				'sub_fields' => array (
					array (
						'key' => 'field_530b74b9b4509',
						'label' => __('Criteria', 'themewich'),
						'name' => 'criteria',
						'type' => 'text',
						'required' => 1,
						'column_width' => 50,
						'default_value' => '',
						'placeholder' => 'Enter your review criteria',
						'prepend' => '',
						'append' => '',
						'formatting' => 'html',
						'maxlength' => '',
					),
					array (
						'key' => 'field_530b74d9b450a',
						'label' => __('Rating', 'themewich'),
						'name' => 'rating',
						'type' => 'number',
						'instructions' => __('Enter a number 0-10', 'themewich'),
						'required' => 1,
						'column_width' => 50,
						'default_value' => '',
						'placeholder' => 'Enter a number 0-10',
						'prepend' => '',
						'append' => '',
						'min' => 0,
						'max' => 10,
						'step' => 0.5,
					),
				),
				'row_min' => '',
				'row_limit' => '',
				'layout' => 'row',
				'button_label' => 'Add Review Criteria',
			),
			array (
				'key' => 'field_530b7e9272afc',
				'label' => __('Review Title', 'themewich'),
				'name' => 'review_title',
				'type' => 'text',
				'instructions' => __('One word summary of the review.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_530b7892f8ab5',
							'operator' => '==',
							'value' => 'yes',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => 'i.e. Excellent',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_530b7ec672afd',
				'label' => __('Review Summary', 'themewich'),
				'name' => 'review_summary',
				'type' => 'wysiwyg',
				'instructions' => __('A couple sentence summary of the review.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_530b7892f8ab5',
							'operator' => '==',
							'value' => 'yes',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'toolbar' => 'basic',
				'media_upload' => 'yes',
			),
			array (
				'key' => 'field_530ce5efb6834',
				'label' => __('Breakdown Title', 'themewich'),
				'name' => 'breakdown_title',
				'type' => 'text',
				'instructions' => __('Enter an optional title for your breakdown area.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_530b7892f8ab5',
							'operator' => '==',
							'value' => 'yes',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => 'i.e. The Breakdown',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_530ce611b6835',
				'label' => __('Breakdown Post Title', 'themewich'),
				'name' => 'breakdown_post_title',
				'type' => 'radio',
				'instructions' => __('Also add the post title to your breakdown text.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_530b7892f8ab5',
							'operator' => '==',
							'value' => 'yes',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'yes' => __('Yes', 'themewich'),
					'no' => __('No', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'horizontal',
			),
		),
		'location' => array (
			array (
				array (
					'param' => 'post_type',
					'operator' => '==',
					'value' => 'post',
					'order_no' => 0,
					'group_no' => 0,
				),
			),
		),
		'options' => array (
			'position' => 'normal',
			'layout' => 'default',
			'hide_on_screen' => array (
				0 => 'custom_fields',
			),
		),
		'menu_order' => 0,
	));
	register_field_group(array (
		'id' => 'acf_section-options',
		'title' => 'Section Options',
		'fields' => array (
			array (
				'key' => 'field_52f025326176c',
				'label' => __('Display Title', 'themewich'),
				'name' => 'section_title',
				'type' => 'text',
				'default_value' => '',
				'placeholder' => 'Optional',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_52f0255e6176d',
				'label' => __('Display Subtitle', 'themewich'),
				'name' => 'section_subtitle',
				'type' => 'text',
				'default_value' => '',
				'placeholder' => 'Optional',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_52f13460b852e',
				'label' => __('Choose a section type.', 'themewich'),
				'name' => '',
				'type' => 'message',
				'message' => __('Select the type of section you want to create.', 'themewich'),
			),
			array (
				'key' => 'field_52f047bc5b703',
				'label' => __('Section Type', 'themewich'),
				'name' => 'section_type',
				'type' => 'radio',
				'required' => 1,
				'choices' => array (
					'section-slider' => __('Slideshow', 'themewich'),
					'section-grid' => __('Grid', 'themewich'),
					'section-regular' => __('Regular Posts', 'themewich'),
					'section-full-post' => __('Full Post', 'themewich'),
					'section-full' => __('Full Image Link', 'themewich'),
					'section-ad' => __('Ad', 'themewich'),
					'section-content' => __('Content', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'section-slider',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_52f02d5fce6be',
				'label' => __('Full Feature Type', 'themewich'),
				'name' => 'full_feature_type',
				'type' => 'radio',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'category' => __('Link to Category', 'themewich'),
					'tag' => __('Link to Tag', 'themewich'),
					'page' => __('Link to Post/Page', 'themewich'),
					'external' => __('Custom Link', 'themewich'),
					'nolink' => __('No Link', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_53a35ebb80843',
				'label' => __('Full Feature Link', 'themewich'),
				'name' => 'full_feature_link',
				'type' => 'text',
				'instructions' => __('Enter a url for you link, starting with http://', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full',
						),
						array (
							'field' => 'field_52f02d5fce6be',
							'operator' => '==',
							'value' => 'external',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_52f02bdecc9a7',
				'label' => __('Full Width Slideshow Type', 'themewich'),
				'name' => 'full_slide_type',
				'type' => 'radio',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-slider',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'full' => __('Tabbed Slideshow', 'themewich'),
					'carousel' => __('Carousel Slideshow', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_5303bec1b5eac',
				'label' => __('Carousel Width', 'themewich'),
				'name' => 'carousel_width',
				'type' => 'radio',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-slider',
						),
						array (
							'field' => 'field_52f02bdecc9a7',
							'operator' => '==',
							'value' => 'carousel',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'full' => __('Full Width', 'themewich'),
					'fixed' => __('Fixed Width', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_5303bf20b5eae',
				'label' => __('Carousel Item Size', 'themewich'),
				'name' => 'carousel_size',
				'type' => 'radio',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-slider',
						),
						array (
							'field' => 'field_52f02bdecc9a7',
							'operator' => '==',
							'value' => 'carousel',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'half' => __('Square', 'themewich'),
					'big' => __('Letterbox', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_52f02ce51c98e',
				'label' => __('Grid Type', 'themewich'),
				'name' => 'grid_type',
				'type' => 'radio',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-grid',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'full' => __('Full Width Grid', 'themewich'),
					'sidebar' => __('Grid With Sidebar', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_52f1333fcc005',
				'label' => __('Ad Type', 'themewich'),
				'name' => 'ad_type',
				'type' => 'radio',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-ad',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'code' => __('Ad Code', 'themewich'),
					'image' => __('Image Upload', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => '',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_53613e00e565f',
				'label' => __('Type of Post', 'themewich'),
				'name' => 'section_query_type',
				'type' => 'radio',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-slider',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-grid',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-regular',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full-post',
						),
					),
					'allorany' => 'any',
				),
				'choices' => array (
					'latest' => __('Latest', 'themewich'),
					'featured' => __('Featured', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'latest',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_536035f683f88',
				'label' => __('Posts to Show', 'themewich'),
				'name' => 'section_query_tax',
				'type' => 'radio',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-slider',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-grid',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-regular',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full-post',
						),
					),
					'allorany' => 'any',
				),
				'choices' => array (
					'all' => __('All', 'themewich'),
					'category' => __('Category', 'themewich'),
					'tag' => __('Tag', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'all',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_53614a406eb74',
				'label' => __('Category', 'themewich'),
				'name' => 'section_category',
				'type' => 'taxonomy',
				'instructions' => __('Hold shift to select more than one.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_536035f683f88',
							'operator' => '==',
							'value' => 'category',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-content',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-ad',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-full',
						),
					),
					'allorany' => 'all',
				),
				'taxonomy' => 'category',
				'field_type' => 'multi_select',
				'allow_null' => 0,
				'load_save_terms' => 0,
				'return_format' => 'id',
				'multiple' => 0,
			),
			array (
				'key' => 'field_5360364d4bc38',
				'label' => __('Tag', 'themewich'),
				'name' => 'section_tag',
				'type' => 'taxonomy',
				'instructions' => __('Hold shift to select more than one.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_536035f683f88',
							'operator' => '==',
							'value' => 'tag',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-full',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-content',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-ad',
						),
					),
					'allorany' => 'all',
				),
				'taxonomy' => 'post_tag',
				'field_type' => 'multi_select',
				'allow_null' => 0,
				'load_save_terms' => 0,
				'return_format' => 'id',
				'multiple' => 0,
			),
			array (
				'key' => 'field_52f025d26176f',
				'label' => __('Number of Posts', 'themewich'),
				'name' => 'section_post_number',
				'type' => 'number',
				'instructions' => __('Enter the maximum number of posts you want on your page', 'themewich'),
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-content',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-ad',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-full',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '!=',
							'value' => 'section-full-post',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => 8,
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'min' => 4,
				'max' => '',
				'step' => '',
			),
			array (
				'key' => 'field_531e509c64601',
				'label' => __('Autoplay', 'themewich'),
				'name' => 'autoplay',
				'type' => 'radio',
				'instructions' => __('Select if you want your slideshow to automatically play by default.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-slider',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'autoplay' => __('Yes', 'themewich'),
					'no-autoplay' => __('No', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'no-autoplay',
				'layout' => 'horizontal',
			),
			array (
				'key' => 'field_531e52da70547',
				'label' => __('Autplay Delay', 'themewich'),
				'name' => 'delay',
				'type' => 'number',
				'instructions' => __('Number of seconds before the next slide.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-slider',
						),
						array (
							'field' => 'field_531e509c64601',
							'operator' => '==',
							'value' => 'autoplay',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => 5,
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'min' => 1,
				'max' => '',
				'step' => '',
			),
			array (
				'key' => 'field_52f90441fab6f',
				'label' => __('Number of Posts', 'themewich'),
				'name' => 'full_section_post_number',
				'type' => 'number',
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full-post',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => 5,
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'min' => '',
				'max' => '',
				'step' => '',
			),
			array (
				'key' => 'field_52f4202095ea0',
				'label' => __('Featured Category Link', 'themewich'),
				'name' => 'featured_category_link',
				'type' => 'taxonomy',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full',
						),
						array (
							'field' => 'field_52f02d5fce6be',
							'operator' => '==',
							'value' => 'category',
						),
					),
					'allorany' => 'all',
				),
				'taxonomy' => 'category',
				'field_type' => 'select',
				'allow_null' => 0,
				'load_save_terms' => 0,
				'return_format' => 'id',
				'multiple' => 0,
			),
			array (
				'key' => 'field_52f901296fe49',
				'label' => __('Featured Tag Link', 'themewich'),
				'name' => 'featured_tag_link',
				'type' => 'taxonomy',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full',
						),
						array (
							'field' => 'field_52f02d5fce6be',
							'operator' => '==',
							'value' => 'tag',
						),
					),
					'allorany' => 'all',
				),
				'taxonomy' => 'post_tag',
				'field_type' => 'select',
				'allow_null' => 0,
				'load_save_terms' => 0,
				'return_format' => 'id',
				'multiple' => 0,
			),
			array (
				'key' => 'field_53616c968f0d0',
				'label' => __('Featured Page Link', 'themewich'),
				'name' => 'featured_page_link',
				'type' => 'page_link',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full',
						),
						array (
							'field' => 'field_52f02d5fce6be',
							'operator' => '==',
							'value' => 'page',
						),
					),
					'allorany' => 'all',
				),
				'post_type' => array (
					0 => 'post',
					1 => 'page',
				),
				'allow_null' => 0,
				'multiple' => 0,
			),
			array (
				'key' => 'field_52f02e3e77281',
				'label' => __('Section Background Image', 'themewich'),
				'name' => 'taxonomy_image',
				'type' => 'image',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full',
						),
					),
					'allorany' => 'all',
				),
				'save_format' => 'object',
				'preview_size' => 'fullslideshow',
				'library' => 'all',
			),
			array (
				'key' => 'field_52f1330fcc003',
				'label' => __('Ad Code', 'themewich'),
				'name' => 'ad_code',
				'type' => 'textarea',
				'instructions' => __('Copy and paste your ad code here. Recommended size: 728x90 (Leaderboard).', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-ad',
						),
						array (
							'field' => 'field_52f1333fcc005',
							'operator' => '==',
							'value' => 'code',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '',
				'maxlength' => '',
				'rows' => '',
				'formatting' => 'html',
			),
			array (
				'key' => 'field_52f13330cc004',
				'label' => __('Ad Image', 'themewich'),
				'name' => 'ad_image',
				'type' => 'image',
				'instructions' => __('Recommended Size 728x90 (leaderboard).', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-ad',
						),
						array (
							'field' => 'field_52f1333fcc005',
							'operator' => '==',
							'value' => 'image',
						),
					),
					'allorany' => 'all',
				),
				'save_format' => 'object',
				'preview_size' => 'full',
				'library' => 'all',
			),
			array (
				'key' => 'field_52f13397cc008',
				'label' => __('Ad Url', 'themewich'),
				'name' => 'ad_url',
				'type' => 'text',
				'instructions' => __('Must begin with http://', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-ad',
						),
						array (
							'field' => 'field_52f1333fcc005',
							'operator' => '==',
							'value' => 'image',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_52f13bc8f15da',
				'label' => __('Content Layout', 'themewich'),
				'name' => 'content_layout',
				'type' => 'radio',
				'instructions' => __('Choose your content layout', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-content',
						),
					),
					'allorany' => 'all',
				),
				'choices' => array (
					'sidebar' => __('Sidebar', 'themewich'),
					'full' => __('Full Width', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'sidebar',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_52f13498511aa',
				'label' => __('Section Content', 'themewich'),
				'name' => 'section_content',
				'type' => 'wysiwyg',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-content',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'toolbar' => 'full',
				'media_upload' => 'yes',
			),
			array (
				'key' => 'field_52f525ce632de',
				'label' => __('Ajax Pagination', 'themewich'),
				'name' => 'section_pagination',
				'type' => 'radio',
				'instructions' => __('Show or hide the pagination of the section.', 'themewich'),
				'required' => 1,
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-grid',
						),
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-regular',
						),
					),
					'allorany' => 'any',
				),
				'choices' => array (
					'on' => __('On', 'themewich'),
					'off' => __('Off', 'themewich'),
				),
				'other_choice' => 0,
				'save_other_choice' => 0,
				'default_value' => 'on',
				'layout' => 'vertical',
			),
			array (
				'key' => 'field_52f13bb7f15d9',
				'label' => __('Content Sidebar', 'themewich'),
				'name' => 'content_sidebar',
				'type' => 'widget_field',
				'instructions' => __('Click widgets you want to include and drag and drop the order. You can add more available widgets in the <a href="widgets.php">Widgets Page</a>.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-content',
						),
						array (
							'field' => 'field_52f13bc8f15da',
							'operator' => '==',
							'value' => 'sidebar',
						),
					),
					'allorany' => 'all',
				),
				'sidebar' => 'content-section-sidebar',
				'inherit_from' => '',
				'menu_location' => '',
			),
			array (
				'key' => 'field_5304f6cb3f8f0',
				'label' => __('Posts Section Sidebar', 'themewich'),
				'name' => 'posts_section_sidebar',
				'type' => 'widget_field',
				'instructions' => __('Click widgets you want to include and drag and drop the order. You can add more available widgets in the <a href="widgets.php">Widgets Page</a>.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-regular',
						),
					),
					'allorany' => 'all',
				),
				'sidebar' => 'posts-section-sidebar',
				'inherit_from' => '',
				'menu_location' => '',
			),
			array (
				'key' => 'field_52f12f8e8f3b4',
				'label' => __('Grid Sidebar', 'themewich'),
				'name' => 'grid_sidebar',
				'type' => 'widget_field',
				'instructions' => __('Click widgets you want to include and drag and drop the order. You can add more available widgets in the <a href="widgets.php">Widgets Page</a>.', 'themewich'),
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-grid',
						),
						array (
							'field' => 'field_52f02ce51c98e',
							'operator' => '==',
							'value' => 'sidebar',
						),
					),
					'allorany' => 'all',
				),
				'sidebar' => 'grid-section-sidebar',
				'inherit_from' => '',
				'menu_location' => '',
			),
			array (
				'key' => 'field_52f9121edc1bd',
				'label' => __('Headline', 'themewich'),
				'name' => 'taxonomy_headline',
				'type' => 'text',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full',
						),
						array (
							'field' => 'field_52f02d5fce6be',
							'operator' => '!=',
							'value' => 'post',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_52f9124bc7484',
				'label' => __('SubHeadline', 'themewich'),
				'name' => 'taxonomy_subheadline',
				'type' => 'text',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full',
						),
						array (
							'field' => 'field_52f02d5fce6be',
							'operator' => '!=',
							'value' => 'post',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
			array (
				'key' => 'field_52f91260c7485',
				'label' => __('Button Text', 'themewich'),
				'name' => 'taxonomy_button_text',
				'type' => 'text',
				'conditional_logic' => array (
					'status' => 1,
					'rules' => array (
						array (
							'field' => 'field_52f047bc5b703',
							'operator' => '==',
							'value' => 'section-full',
						),
						array (
							'field' => 'field_52f02d5fce6be',
							'operator' => '!=',
							'value' => 'post',
						),
					),
					'allorany' => 'all',
				),
				'default_value' => '',
				'placeholder' => '',
				'prepend' => '',
				'append' => '',
				'formatting' => 'html',
				'maxlength' => '',
			),
		),
		'location' => array (
			array (
				array (
					'param' => 'post_type',
					'operator' => '==',
					'value' => 'section',
					'order_no' => 0,
					'group_no' => 0,
				),
			),
		),
		'options' => array (
			'position' => 'normal',
			'layout' => 'no_box',
			'hide_on_screen' => array (
				0 => 'permalink',
				1 => 'the_content',
				2 => 'excerpt',
				3 => 'custom_fields',
				4 => 'discussion',
				5 => 'comments',
				6 => 'revisions',
				7 => 'author',
				8 => 'format',
				9 => 'featured_image',
				10 => 'categories',
				11 => 'tags',
				12 => 'send-trackbacks',
			),
		),
		'menu_order' => 0,
	));
}