Guest User

Untitled

a guest
Dec 13th, 2021
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.09 KB | None | 0 0
  1. if( function_exists('acf_add_local_field_group') ):
  2.  
  3. acf_add_local_field_group(array(
  4. 'key' => 'group_61b1cbd6c7c94',
  5. 'title' => 'advisors',
  6. 'fields' => array(
  7. array(
  8. 'key' => 'field_61b3879348430',
  9. 'label' => 'left sidebar',
  10. 'name' => '',
  11. 'type' => 'tab',
  12. 'instructions' => '',
  13. 'required' => 0,
  14. 'conditional_logic' => 0,
  15. 'wrapper' => array(
  16. 'width' => '',
  17. 'class' => '',
  18. 'id' => '',
  19. ),
  20. 'placement' => 'top',
  21. 'endpoint' => 0,
  22. ),
  23. array(
  24. 'key' => 'field_61b377d96ce6c',
  25. 'label' => 'School',
  26. 'name' => 'school',
  27. 'type' => 'post_object',
  28. 'instructions' => '',
  29. 'required' => 0,
  30. 'conditional_logic' => 0,
  31. 'wrapper' => array(
  32. 'width' => '',
  33. 'class' => '',
  34. 'id' => '',
  35. ),
  36. 'post_type' => array(
  37. 0 => 'schools',
  38. ),
  39. 'taxonomy' => '',
  40. 'allow_null' => 1,
  41. 'multiple' => 1,
  42. 'return_format' => 'id',
  43. 'translations' => 'copy_once',
  44. 'ui' => 1,
  45. ),
  46. array(
  47. 'key' => 'field_61b387c648432',
  48. 'label' => 'About',
  49. 'name' => 'about',
  50. 'type' => 'textarea',
  51. 'instructions' => '',
  52. 'required' => 0,
  53. 'conditional_logic' => 0,
  54. 'wrapper' => array(
  55. 'width' => '',
  56. 'class' => '',
  57. 'id' => '',
  58. ),
  59. 'default_value' => '',
  60. 'placeholder' => '',
  61. 'maxlength' => '',
  62. 'rows' => '',
  63. 'new_lines' => '',
  64. 'translations' => 'translate',
  65. ),
  66. array(
  67. 'key' => 'field_61b1cbffae19e',
  68. 'label' => 'Gamification Achievements',
  69. 'name' => 'gallery',
  70. 'type' => 'gallery',
  71. 'instructions' => '',
  72. 'required' => 0,
  73. 'conditional_logic' => 0,
  74. 'wrapper' => array(
  75. 'width' => '',
  76. 'class' => '',
  77. 'id' => '',
  78. ),
  79. 'return_format' => 'url',
  80. 'preview_size' => 'thumbnail',
  81. 'insert' => 'append',
  82. 'library' => 'all',
  83. 'min' => '',
  84. 'max' => '',
  85. 'min_width' => '',
  86. 'min_height' => '',
  87. 'min_size' => '',
  88. 'max_width' => '',
  89. 'max_height' => '',
  90. 'max_size' => '',
  91. 'mime_types' => '',
  92. 'translations' => 'ignore',
  93. ),
  94. array(
  95. 'key' => 'field_61b3888afa810',
  96. 'label' => 'Testimonials text',
  97. 'name' => 'testimonials_text',
  98. 'type' => 'post_object',
  99. 'instructions' => '',
  100. 'required' => 0,
  101. 'conditional_logic' => 0,
  102. 'wrapper' => array(
  103. 'width' => '',
  104. 'class' => '',
  105. 'id' => '',
  106. ),
  107. 'post_type' => array(
  108. 0 => 'feeds',
  109. ),
  110. 'taxonomy' => array(
  111. 0 => 'type_testimonial:text',
  112. ),
  113. 'allow_null' => 1,
  114. 'multiple' => 1,
  115. 'return_format' => 'object',
  116. 'translations' => 'copy_once',
  117. 'ui' => 1,
  118. ),
  119. ),
  120. 'location' => array(
  121. array(
  122. array(
  123. 'param' => 'post_type',
  124. 'operator' => '==',
  125. 'value' => 'staff',
  126. ),
  127. ),
  128. ),
  129. 'menu_order' => 0,
  130. 'position' => 'normal',
  131. 'style' => 'default',
  132. 'label_placement' => 'top',
  133. 'instruction_placement' => 'label',
  134. 'hide_on_screen' => array(
  135. 0 => 'the_content',
  136. ),
  137. 'active' => true,
  138. 'description' => '',
  139. 'show_in_rest' => 0,
  140. ));
  141.  
  142. acf_add_local_field_group(array(
  143. 'key' => 'group_61b09efb65615',
  144. 'title' => 'Degree',
  145. 'fields' => array(
  146. array(
  147. 'key' => 'field_61b09f007ffbe',
  148. 'label' => 'Degree',
  149. 'name' => 'degree',
  150. 'type' => 'post_object',
  151. 'instructions' => '',
  152. 'required' => 0,
  153. 'conditional_logic' => 0,
  154. 'wrapper' => array(
  155. 'width' => '',
  156. 'class' => '',
  157. 'id' => '',
  158. ),
  159. 'post_type' => array(
  160. 0 => 'extent',
  161. ),
  162. 'taxonomy' => '',
  163. 'allow_null' => 0,
  164. 'multiple' => 0,
  165. 'return_format' => 'id',
  166. 'translations' => 'copy_once',
  167. 'ui' => 1,
  168. ),
  169. ),
  170. 'location' => array(
  171. array(
  172. array(
  173. 'param' => 'post_type',
  174. 'operator' => '==',
  175. 'value' => 'graduates',
  176. ),
  177. ),
  178. array(
  179. array(
  180. 'param' => 'post_type',
  181. 'operator' => '==',
  182. 'value' => 'staff',
  183. ),
  184. ),
  185. ),
  186. 'menu_order' => 0,
  187. 'position' => 'normal',
  188. 'style' => 'default',
  189. 'label_placement' => 'top',
  190. 'instruction_placement' => 'label',
  191. 'hide_on_screen' => '',
  192. 'active' => true,
  193. 'description' => '',
  194. 'show_in_rest' => 0,
  195. ));
  196.  
  197. endif;
Advertisement
Add Comment
Please, Sign In to add comment