Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. if( function_exists('acf_add_local_field_group') ):
  2.  
  3. acf_add_local_field_group(array (
  4. 'key' => 'group_56ba318b754ae',
  5. 'title' => 'Test',
  6. 'fields' => array (
  7. array (
  8. 'key' => 'field_56ba360405ef3',
  9. 'label' => 'Category Select',
  10. 'name' => 'category_select',
  11. 'type' => 'taxonomy',
  12. 'instructions' => '',
  13. 'required' => 0,
  14. 'conditional_logic' => 0,
  15. 'wrapper' => array (
  16. 'width' => '',
  17. 'class' => '',
  18. 'id' => '',
  19. ),
  20. 'taxonomy' => 'category',
  21. 'field_type' => 'select',
  22. 'allow_null' => 0,
  23. 'add_term' => 0,
  24. 'save_terms' => 0,
  25. 'load_terms' => 0,
  26. 'return_format' => 'id',
  27. 'multiple' => 0,
  28. ),
  29. ),
  30. 'location' => array (
  31. array (
  32. array (
  33. 'param' => 'attachment',
  34. 'operator' => '==',
  35. 'value' => 'all',
  36. ),
  37. ),
  38. ),
  39. 'menu_order' => 0,
  40. 'position' => 'normal',
  41. 'style' => 'default',
  42. 'label_placement' => 'top',
  43. 'instruction_placement' => 'label',
  44. 'hide_on_screen' => '',
  45. 'active' => 1,
  46. 'description' => '',
  47. ));
  48.  
  49. endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement