Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( function_exists('acf_add_local_field_group') ):
- acf_add_local_field_group(array (
- 'key' => 'group_55ba5afe33377',
- 'title' => 'upload',
- 'fields' => array (
- array (
- 'key' => 'field_55ba753cf56ab',
- 'label' => 'Upload File',
- 'name' => '',
- 'type' => 'tab',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array (
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'placement' => 'left',
- 'endpoint' => 1,
- ),
- array (
- 'key' => 'field_55ba5b162db22',
- 'label' => 'Modal Name',
- 'name' => 'file_name',
- 'type' => 'text',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array (
- 'width' => 100,
- 'class' => '',
- 'id' => '',
- ),
- 'default_value' => '',
- 'placeholder' => '',
- 'prepend' => '',
- 'append' => '',
- 'maxlength' => '',
- 'readonly' => 0,
- 'disabled' => 0,
- ),
- array (
- 'key' => 'field_55ba5c632db24',
- 'label' => 'Preview Image',
- 'name' => 'preview_image_of_model',
- 'type' => 'text',
- 'instructions' => 'A 600x600px preview image of the model',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array (
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'default_value' => '',
- 'placeholder' => '',
- 'prepend' => '',
- 'append' => '',
- 'maxlength' => '',
- 'readonly' => 0,
- 'disabled' => 0,
- ),
- array (
- 'key' => 'field_55ba5b3f2db23',
- 'label' => 'Pepakura File',
- 'name' => 'pepakura_file',
- 'type' => 'file',
- 'instructions' => 'Please attach the correct PDO',
- 'required' => 1,
- 'conditional_logic' => 0,
- 'wrapper' => array (
- 'width' => 100,
- 'class' => '',
- 'id' => '',
- ),
- 'return_format' => 'array',
- 'library' => 'uploadedTo',
- 'min_size' => 10,
- 'max_size' => 10,
- 'mime_types' => 'pdo, .pdo',
- ),
- array (
- 'key' => 'field_55ba74e7d3130',
- 'label' => 'Meta Data',
- 'name' => '',
- 'type' => 'tab',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array (
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'placement' => 'left',
- 'endpoint' => 1,
- ),
- array (
- 'key' => 'field_55ba75e6dbcd0',
- 'label' => 'Category',
- 'name' => 'file_category',
- 'type' => 'taxonomy',
- 'instructions' => 'Select the appropriate category. If it isn\'t listed, click the + icon and add the appropriate category. ',
- 'required' => 1,
- 'conditional_logic' => 0,
- 'wrapper' => array (
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'taxonomy' => 'category',
- 'field_type' => 'select',
- 'allow_null' => 0,
- 'add_term' => 1,
- 'save_terms' => 1,
- 'load_terms' => 0,
- 'return_format' => 'id',
- 'multiple' => 0,
- ),
- array (
- 'key' => 'field_55ba76d7b136e',
- 'label' => 'Body Part',
- 'name' => 'file_body_part',
- 'type' => 'taxonomy',
- 'instructions' => 'Where is the prop used?',
- 'required' => 1,
- 'conditional_logic' => 0,
- 'wrapper' => array (
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'taxonomy' => 'body_part',
- 'field_type' => 'radio',
- 'allow_null' => 0,
- 'add_term' => 1,
- 'save_terms' => 1,
- 'load_terms' => 1,
- 'return_format' => 'id',
- 'multiple' => 0,
- ),
- array (
- 'key' => 'field_55ba7c17d39ae',
- 'label' => 'Assembly Difficulty',
- 'name' => 'assembly_difficulty',
- 'type' => 'radio',
- 'instructions' => 'How difficult would it be to assemble',
- 'required' => 1,
- 'conditional_logic' => 0,
- 'wrapper' => array (
- 'width' => 100,
- 'class' => '',
- 'id' => '',
- ),
- 'choices' => array (
- 'Novice' => 'Novice',
- 'Advanced' => 'Advanced',
- 'Expert' => 'Expert',
- 'Professional' => 'Professional',
- ),
- 'other_choice' => 0,
- 'save_other_choice' => 0,
- 'default_value' => 'Novice',
- 'layout' => 'vertical',
- ),
- array (
- 'key' => 'field_55ba810a15675',
- 'label' => 'Been Unfolded',
- 'name' => 'unfolded',
- 'type' => 'radio',
- 'instructions' => 'Has the modal been unfolded?',
- 'required' => 1,
- 'conditional_logic' => 0,
- 'wrapper' => array (
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'choices' => array (
- 'yes' => 'Yes',
- 'no' => 'No',
- ),
- 'other_choice' => 0,
- 'save_other_choice' => 0,
- 'default_value' => '',
- 'layout' => 'horizontal',
- ),
- array (
- 'key' => 'field_55ba814c15676',
- 'label' => 'Edit Protected',
- 'name' => 'edit_protected',
- 'type' => 'radio',
- 'instructions' => 'Is it password protected?',
- 'required' => 1,
- 'conditional_logic' => 0,
- 'wrapper' => array (
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'choices' => array (
- 'yes' => 'Yes',
- 'no' => 'No',
- ),
- 'other_choice' => 0,
- 'save_other_choice' => 0,
- 'default_value' => '',
- 'layout' => 'horizontal',
- ),
- ),
- 'location' => array (
- array (
- array (
- 'param' => 'post_type',
- 'operator' => '==',
- 'value' => 'file',
- ),
- ),
- ),
- 'menu_order' => 0,
- 'position' => 'normal',
- 'style' => 'default',
- 'label_placement' => 'top',
- 'instruction_placement' => 'label',
- 'hide_on_screen' => '',
- ));
- endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement