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_56ba318b754ae',
- 'title' => 'Test',
- 'fields' => array (
- array (
- 'key' => 'field_56ba360405ef3',
- 'label' => 'Category Select',
- 'name' => 'category_select',
- 'type' => 'taxonomy',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'wrapper' => array (
- 'width' => '',
- 'class' => '',
- 'id' => '',
- ),
- 'taxonomy' => 'category',
- 'field_type' => 'select',
- 'allow_null' => 0,
- 'add_term' => 0,
- 'save_terms' => 0,
- 'load_terms' => 0,
- 'return_format' => 'id',
- 'multiple' => 0,
- ),
- ),
- 'location' => array (
- array (
- array (
- 'param' => 'attachment',
- 'operator' => '==',
- 'value' => 'all',
- ),
- ),
- ),
- 'menu_order' => 0,
- 'position' => 'normal',
- 'style' => 'default',
- 'label_placement' => 'top',
- 'instruction_placement' => 'label',
- 'hide_on_screen' => '',
- 'active' => 1,
- 'description' => '',
- ));
- endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement