跳转到主要内容

书籍

Advanced Custom Fields 文档

Advanced Custom Fields 官方资源文档,介绍字段、区块与常用 API。

258 页更新于 2 个月前

开始阅读

目录258

  1. 01 Abilities API Integration Enables AI tools and automation platforms to interact with ACF data through the WordPress Abilities API. De... 2 个月前
  2. 02 Ability: acf/create-custom-post-type Creates a new custom post type in ACF. Description Creates a new custom post type using ACF’s post type reg... 2 个月前
  3. 03 Ability: acf/create-custom-taxonomy Creates a new custom taxonomy in ACF. Description Creates a new taxonomy using ACF’s taxonomy registration ... 2 个月前
  4. 04 Ability: acf/create-field-group Creates a new ACF field group with fields and location rules. Description Creates a new field group in ACF ... 2 个月前
  5. 05 Ability: acf/custom-post-types Lists all ACF-registered custom post types. Description Returns an array of custom post types that were cre... 2 个月前
  6. 06 Ability: acf/custom-taxonomies Lists all ACF-registered custom taxonomies. Description Returns an array of taxonomies that were created us... 2 个月前
  7. 07 Ability: acf/field-groups Lists all ACF field groups that allow AI access. Description Returns an array of field groups that have AI ... 2 个月前
  8. 08 Accordion Description The Accordion field is used to organize fields into collapsible panels. Each Accordion displays... 2 个月前
  9. 09 acf/admin/license_key_constant_message Description Used to modify the admin screen message when a license key is defined in code. Changelog Added ... 2 个月前
  10. 10 acf/ajax/shortcode_capability Description Used to modify the capability required to parse the ACF shortcode over AJAX requests, commonly ... 2 个月前
  11. 11 ACF Blocks Configuration via block.json Description Since ACF 6.0, ACF has recommended using block.json to handle your block registration. A mirro... 2 个月前
  12. 12 acf/blocks/default_block_version Description Used to opt all of your ACF Blocks into a specific version. Changelog Added in version 6.6 Exam... 2 个月前
  13. 13 acf/blocks/default_expanded_editor_button_text Customize the default “Open in Expanded Editor” button text for all V3 blocks. Description This filter allo... 2 个月前
  14. 14 ACF Blocks FAQ Frequently Asked Questions Have a question about ACF Blocks that isn’t covered here? Then make sure to regi... 2 个月前
  15. 15 acf/blocks/fields_needing_wide_popover Description This filter allows developers to modify the list of ACF field types that will receive a wider p... 2 个月前
  16. 16 acf/blocks/fields_to_open_in_expanded_editor Description This filter allows developers to modify the array of field types that, when utilized within an ... 2 个月前
  17. 17 ACF Blocks: How to Use Block Locking Locking down your ACF Blocks with block locking ensures those blocks can’t be removed or modified in unauth... 2 个月前
  18. 18 Key Concepts ACF Blocks allows you to build on top of the WordPress blocks system introduced in WordPress 5.0 “Bebo”, gi... 2 个月前
  19. 19 acf/blocks/top_toolbar_fields Description This filter allows you to add fields to the top toolbar of a specific ACF Block, enabling direc... 2 个月前
  20. 20 ACF Blocks: Using get_block_wrapper_attributes() The get_block_wrapper_attributes() function allows you to use the styles built by WordPress’ native suppor... 2 个月前
  21. 21 ACF Blocks: Using InnerBlocks and Parent/Child Relationships In this tutorial, we’ll show you how to utilize the InnerBlocks component within an ACF Block. We’ll also d... 2 个月前
  22. 22 ACF Blocks V3 ACF Blocks V3 ACF Blocks Version 3 brings your ACF Blocks improved usability, new functionality, and fixes ... 2 个月前
  23. 23 acf/compatibility Description Used to enable backwards compatibility support for changed functionality. Support for each comp... 2 个月前
  24. 24 Updates to ACF Field Functions in 5.11 Updates to ACF Field Functions in 5.11 In versions of ACF prior to 5.11, the ACF shortcode [acf field="fie... 2 个月前
  25. 25 acf/field_group/admin_enqueue_scripts Description Used to enqueue scripts and styles on the field group admin edit page. This action is similar t... 2 个月前
  26. 26 acf/field_group/admin_footer Description Used to output additional <body> HTML to the field group admin edit page. This action is simil... 2 个月前
  27. 27 acf/field_group/admin_head Description Used to output additional <head> HTML to the field group admin edit page. This action is simil... 2 个月前
  28. 28 acf/field_group/auto_add_first_field Description Filter for determining if a new field group should load with a text field automatically. The de... 2 个月前
  29. 29 acf/field_group/disable_field_settings_tabs Description Used to disable the field settings tabs in the field group editor. Changelog Added in version 6... 2 个月前
  30. 30 acf/field_group/enable_field_browser Description Used to hide the ‘Browse Fields’ button to disable the field type selection modal when editing ... 2 个月前
  31. 31 acf/fields/flexible_content/layout_title Description Used to modify the $title HTML displayed at the top of each flexible content layout. Within th... 2 个月前
  32. 32 acf/fields/google_map/api Description Used to modify the url parameters used to load the Google Maps JS API. Primarily, this filter e... 2 个月前
  33. 33 acf/fields/post_object/query Description Filters the query $args used by WP_Query to display posts in the Post Object field. Changelog... 2 个月前
  34. 34 acf/fields/post_object/result Description Filters the text displayed for each post in the Post Object field. Changelog Added in version 4... 2 个月前
  35. 35 acf/fields/relationship/query Description Filters the query $args used by WP_Query to display posts in the Relationship field. Changelo... 2 个月前
  36. 36 acf/fields/relationship/result Description Filters the text displayed for each post in the Relationship field. Changelog Added in version ... 2 个月前
  37. 37 acf/fields/taxonomy/query Description Filters the query $args used by WP_Term_Query to display terms in the Taxonomy field when dis... 2 个月前
  38. 38 acf/fields/taxonomy/result Description Filters the text displayed for each term in the Taxonomy field when displayed as a Select or Mu... 2 个月前
  39. 39 acf/fields/taxonomy/wp_list_categories Description Filters the query $args used by WP_Term_Query to display terms in the Taxonomy field when dis... 2 个月前
  40. 40 acf/fields/user/query Description Filters the query $args used by WP_Query to display text for each user. Parameters apply_filt... 2 个月前
  41. 41 acf/fields/user/result Description Filters the text displayed for each user. Parameters apply_filters( 'acf/fields/user/result', $... 2 个月前
  42. 42 acf/format_value Description Filters the field $value after being loaded by a template function such as get_field(). Chang... 2 个月前
  43. 43 acf/init Description Fires after ACF is fully initialized. This action is similar to the WordPress init action, and ... 2 个月前
  44. 44 acf/input/admin_enqueue_scripts Description Used to enqueue scripts and styles on pages where ACF fields appear. This action is similar to ... 2 个月前
  45. 45 acf/input/admin_footer Description Used to output additional <body> HTML to pages where ACF fields appear. This action is similar... 2 个月前
  46. 46 acf/input/admin_head Description Used to output additional <head> HTML to pages where ACF fields appear. This action is similar... 2 个月前
  47. 47 acf/input/form_data Description Used to output additional HTML within the hidden <div id="acf-form-data"> element. This elemen... 2 个月前
  48. 48 acf/json/eof_newline Description Used to change the newline character at the end of JSON files. Changelog Added in version 6.2. ... 2 个月前
  49. 49 acf/json/save_file_name Description Used to change the filename of files saved by the ACF local JSON feature. Changelog Added in ve... 2 个月前
  50. 50 acf/load_field Description Filters the $field settings array after being loaded. A field is loaded anytime it is displaye... 2 个月前
  51. 51 acf/load_value Description Filters the field $value after being loaded. Changelog Added in version 4.0.0 Parameters apply... 2 个月前
  52. 52 How to Make WordPress® Content Machine Readable with ACF, MCP, and Schema.org In WordPress®, the Advanced Custom Fields plugin allows content teams to create structured custom data in a... 2 个月前
  53. 53 acf/options_page/save Description Fires after publishing a save on an options page. This action allows you to hook in after an op... 2 个月前
  54. 54 acf/options_page/settings This filter allows you to modify the setting used by the options page add-on. Changelog Deprecated in ACF P... 2 个月前
  55. 55 acf/pre_save_post Description This filter allows you to modify the $post_id before any custom field data is saved from the fr... 2 个月前
  56. 56 acf/prepare_field Description Used to modify the $field settings or to prevent the field from being rendered within a form. ... 2 个月前
  57. 57 ACF PRO 6.8 Beta 2 – Schema.org JSON-LD Testing Guide Prerequisites Active ACF PRO license WordPress 6.0+ PHP 7.4+ Existing ACF field groups on a post type Step-... 2 个月前
  58. 58 acf/register_block_type_args Description Filters the arguments for registering a block type. This filter is applied during the acf_regis... 2 个月前
  59. 59 acf/render_field Description Used to output additional HTML before or after a field’s input. Changelog Added in version 5.0.... 2 个月前
  60. 60 acf/save_post Description Fires when saving the submitted $_POST data. This action allows you to hook in before or after... 2 个月前
  61. 61 acf/schema/auto_add_author Control whether to automatically add author information to JSON-LD output. Description By default, ACF auto... 2 个月前
  62. 62 acf/schema/auto_add_image Control whether to automatically add the featured image to JSON-LD output. Description By default, ACF auto... 2 个月前
  63. 63 acf/schema/block_field_objects/block_name={block_name} Filter field objects for a specific block type. Description This filter is a block-specific version of acf... 2 个月前
  64. 64 acf/schema/block_field_objects Filter field objects before processing for a block. Description This filter allows you to modify or replace... 2 个月前
  65. 65 acf/schema/block_jsonld_enabled Enable or disable JSON-LD output for specific blocks. Description This filter allows you to programmaticall... 2 个月前
  66. 66 acf/schema/data Filter the final JSON-LD data before output. Description This filter allows you to modify the complete JSON... 2 个月前
  67. 67 acf/schema/debug Enable debug HTML comments showing JSON-LD processing steps. Description This filter enables debug mode for... 2 个月前
  68. 68 acf/schema/disable_output Disable JSON-LD output for a specific data set. Description This filter allows you to conditionally prevent... 2 个月前
  69. 69 acf/schema/enabled_post_types Filter the list of post types that have JSON-LD output enabled. Description This filter allows you to progr... 2 个月前
  70. 70 acf/schema/format_value/name={field_name} Filter formatted values for a specific field name. Description This filter is a field name specific version... 2 个月前
  71. 71 acf/schema/format_value/pre/name={field_name} Pre-filter values for a specific field name before default formatting. Description This filter is a field n... 2 个月前
  72. 72 acf/schema/format_value/pre/type={field_type} Pre-filter values for a specific field type before default formatting. Description This filter is a field t... 2 个月前
  73. 73 acf/schema/format_value/pre Filter a field value before default formatting is applied. Description This filter allows you to modify or ... 2 个月前
  74. 74 acf/schema/format_value/type={field_type} Filter formatted values for a specific field type. Description This filter is a field type specific version... 2 个月前
  75. 75 acf/schema/format_value Filter a field value after default formatting is applied. Description This filter allows you to modify fiel... 2 个月前
  76. 76 acf/schema/output_format_choices Filter available output format choices for a field type and property combination. Description This filter a... 2 个月前
  77. 77 acf/schema/post_field_objects/post_type={post_type} Filter field objects for a specific post type. Description This filter is a post type specific version of ... 2 个月前
  78. 78 acf/schema/post_field_objects Filter field objects before processing for a post. Description This filter allows you to modify or replace ... 2 个月前
  79. 79 acf/schema/render_script Action hook fired before the JSON-LD script tag is rendered. Description This action allows you to execute ... 2 个月前
  80. 80 acf/schema/schema_priority_types Filter which Schema.org types appear first in dropdowns. Description This filter allows you to customize wh... 2 个月前
  81. 81 acf/schema/schema_properties Filter available Schema.org properties for a field type. Description This filter allows you to modify the l... 2 个月前
  82. 82 acf/schema/schema_types Filter available Schema.org types in admin dropdowns. Description This filter allows you to modify the list... 2 个月前
  83. 83 ACF Security Principles Introduction Advanced Custom Fields is a plugin for WordPress that allows you to easily store custom data a... 2 个月前
  84. 84 acf/settings/enable_datastore Enables the ACF datastore, which integrates ACF fields with Gutenberg’s native wp.data store. When enabled... 2 个月前
  85. 85 acf/settings/enable_options_pages_ui Description Used to disable the UI for registering options pages. Changelog Added in version 6.2. Example T... 2 个月前
  86. 86 acf/settings/enable_post_types Description Used to disable the custom post type and taxonomies feature. Changelog Added in version 6.1. Ex... 2 个月前
  87. 87 acf/settings acf/settings Description Filters the various settings that are used throughout the plugin. Changelog Added ... 2 个月前
  88. 88 acf/shortcode/prevent_access Description Allows you to limit the fields which can be output by the ACF Shortcode. Returning true from th... 2 个月前
  89. 89 ACF Unlocks the True Power of WordPress Tired of the limits of WordPress’s default fields? Do you dream of creating custom, structured data that el... 2 个月前
  90. 90 acf/update_field Description Used to modify the $field settings array before being saved into the database. This filter sho... 2 个月前
  91. 91 acf/update_value Description Used to modify the field’s $value before it is saved into the database. Changelog Added $orig... 2 个月前
  92. 92 acf/upload_prefilter Description Used to perform custom validation on an attachment and prevent it being uploaded. Similar to th... 2 个月前
  93. 93 acf/validate_attachment Description Used to perform custom validation on an attachment and prevent it being uploaded or selected fo... 2 个月前
  94. 94 acf/validate_save_post Description Fires when validating the $_POST data of a submitted form. Used to add or remove validation er... 2 个月前
  95. 95 acf/validate_value Description Used to perform custom validation on the field’s $value before it is saved into the database. ... 2 个月前
  96. 96 acf_add_options_page() Description Adds an options page to the admin menu. Options pages are used to store global settings. These ... 2 个月前
  97. 97 acf_add_options_sub_page() Description Adds a new options sub page to the admin menu. Options pages are used to store global settings.... 2 个月前
  98. 98 acf_form() Description Displays a form to add or edit a post. There are many settings available to customize the form ... 2 个月前
  99. 99 acf_form_head() Description Used to process, validate and save the submitted form data created by the acf_form() function. ... 2 个月前
  100. 100 acf_get_field_groups() Description Retrieves all ACF field groups filtered by WP_Query args, returning them as an array. This fun... 2 个月前
  101. 101 acf_get_fields() Description Retrieves all the fields from a specific field group, returning them as an array of field objec... 2 个月前
  102. 102 acf_inline_text_editing_attrs() Description Helper function that returns the HTML attributes required for inline text editing as a string, ... 2 个月前
  103. 103 acf_inline_toolbar_editing_attrs() Description Helper function that returns the HTML attributes required for toolbar inline editing as a strin... 2 个月前
  104. 104 acf_register_block_type() Since ACF 6.0, we recommend you register blocks with the new block.json syntax syntax rather than the depre... 2 个月前
  105. 105 acf_register_form() Description Registers a form for use with the acf_form() function. There are many settings available to cus... 2 个月前
  106. 106 acf_set_options_page_capability() Description This function has been deprecated. Please use the acf/options_page/settings filter instead. Mod... 2 个月前
  107. 107 acf_set_options_page_menu() Description This function has been deprecated. Please use the acf/options_page/settings filter instead. Mod... 2 个月前
  108. 108 acf_set_options_page_title() Description This function has been deprecated. Please use the acf/options_page/settings filter instead. Mod... 2 个月前
  109. 109 add_row() Adds a new row of data to an existing Repeater or Flexible Content field value. Parameters add_row($selecto... 2 个月前
  110. 110 add_sub_row() Adds a new row of data to a Repeater or Flexible Content sub field value. This function can be used inside ... 2 个月前
  111. 111 Adding custom javascript to fields ✋ We’ve launched a new JavaScript API full of powerful functions, actions and filters! If you are using ACF... 2 个月前
  112. 112 Adding Custom Settings to Fields Each ACF field type may contain several different settings that can be used to customize the appearance and... 2 个月前
  113. 113 Adding fields to Media Attachments This guide will demonstrate how to add custom fields to a WordPress Attachment and how to then display thes... 2 个月前
  114. 114 Adding fields to Menu Items This guide will demonstrate how to add custom fields to a WordPress Menu Item and how to then modify the Me... 2 个月前
  115. 115 Adding fields to Menus This guide will demonstrate how to add custom fields to a WordPress Menu and how to then modify the Menu’s ... 2 个月前
  116. 116 Adding fields to Posts This guide will demonstrate how to add custom fields to a WordPress Post and how to then modify the post’s ... 2 个月前
  117. 117 Adding Fields to a Taxonomy Term This guide will demonstrate how add custom fields to a Taxonomy Term and then modify the term’s template fi... 2 个月前
  118. 118 Automatic Structured Data with Schema.org Automatically output Schema.org structured data for ACF fields as JSON-LD in the page head. Description ACF... 2 个月前
  119. 119 Bidirectional Relationships In a bidirectional relationship, each object (post, page, custom post type, user, or taxonomy) has a relati... 2 个月前
  120. 120 Block API v2 Introduction Since WordPress 5.6, the block editor has a new version of the Block API. The ACF 5.10 release... 2 个月前
  121. 121 Block Bindings Block bindings allow you to connect WordPress block attributes to ACF field values. Instead of hardcoding c... 2 个月前
  122. 122 blocks/expanded_editor_overlay_class Customize the CSS class on the Expanded Editor modal overlay. Description This JavaScript filter allows you... 2 个月前
  123. 123 ACF Blocks Introduction ACF Blocks are customizable, dynamic, and integrate deeply with custom fields. A premium featu... 2 个月前
  124. 124 Building Layouts With the Flexible Content Field in a Theme ACF’s Flexible Content fields allow you to create multiple groups of fields known as layouts. You can then ... 2 个月前
  125. 125 Button Group Description The Button Group field provides a neat UI for selecting a value. Screenshots The Button Group f... 2 个月前
  126. 126 Checkbox Description The Checkbox field creates a list of check-able inputs. Screenshots The Checkbox field interfac... 2 个月前
  127. 127 Clone Overview The Clone field allows you to select and display existing fields. It does not duplicate any fields... 2 个月前
  128. 128 Code Examples Display a field <p><?php the_field('field_name'); ?></p> Retrieving a field as a variable <?php $variable =... 2 个月前
  129. 129 Color Picker Description The Color Picker field provides an interactive way to select a hex color string using Iris. Scr... 2 个月前
  130. 130 Compiling Multiple ACF Blocks With Scripts Introduction The WordPress block editor has revolutionized the way we can create content in WordPress. Whet... 2 个月前
  131. 131 Conditional Logic Overview Conditional logic allows you to set rules regarding when a custom field should appear, based on th... 2 个月前
  132. 132 Create a front end form This article will cover how to create a form on the front end of your website to add or edit content. Two f... 2 个月前
  133. 133 Create Your First ACF Block ACF Blocks give you the power to create virtually any block you could desire, with the same features found ... 2 个月前
  134. 134 Creating a Custom Post Type with ACF WordPress is a powerful CMS, but out-of-the-box it can lack flexibility when handling content types beyond ... 2 个月前
  135. 135 Creating a Custom Taxonomy with ACF Overview Taxonomies in WordPress allow for the classification and organization of structured data. WordPres... 2 个月前
  136. 136 Creating a Field Group ACF uses field groups to attach fields to posts. Each field group contains a title, fields, location rules,... 2 个月前
  137. 137 Creating a new field type The Advanced Custom Fields plugin is packed with loads of useful field types such as text, image and WYSIWY... 2 个月前
  138. 138 Creating a WP archive with custom field filter This video tutorial will cover the basics of creating a WP archive that displays posts filtered by a checkb... 2 个月前
  139. 139 Custom location rules Each field group contains a set of location rules. These rules are used to decide where to show the field g... 2 个月前
  140. 140 Custom location rules Introduction Location rules are used to determine which field groups appear on which admin screen. They are... 2 个月前
  141. 141 Customize the WYSIWYG toolbars Description The WYSIWYG field contains an option to define the toolbar (buttons) which are rendered onto th... 2 个月前
  142. 142 Customizing the Inline Editing Experience Customizing the Inline Editing Experience Inline Editing is a new feature of ACF Blocks that allows authors... 2 个月前
  143. 143 Date Picker Description The Date Picker field provides a jQuery date selection popup. Screenshots ​​ Creating a Date Pi... 2 个月前
  144. 144 Date Time Picker Description The Date Time Picker field creates a jQuery date & time selection popup. Screenshots The Date T... 2 个月前
  145. 145 Debug, diagnose and solve When customizing your theme with ACF functionality, you may experience some issues. These issues may resemb... 2 个月前
  146. 146 delete_field() Description Deletes the value of a specific field. Parameters delete_field($selector, [$post_id]); $selecto... 2 个月前
  147. 147 delete_row() Deletes a row of data from an existing Repeater or Flexible Content field value. Parameters delete_row($sel... 2 个月前
  148. 148 delete_sub_field() Description Deletes the value of a specific sub field. This function can be used inside or outside of a ha... 2 个月前
  149. 149 delete_sub_row() Deletes a row of data from an existing Repeater or Flexible Content sub field value. This function can be u... 2 个月前
  150. 150 Disable Field Validation in ACF Blocks Field validation is enabled by default for all ACF Blocks. Existing posts with ACF Blocks are validated the... 2 个月前
  151. 151 Displaying Values in Your Theme The Advanced Custom Field’s API makes it very easy to display field data in your theme. There are many func... 2 个月前
  152. 152 Dynamically Populate a Select Field’s Choices Need to dynamically populate a field’s choices? This tutorial shows how to take a value saved to an options... 2 个月前
  153. 153 Email Description The Email field creates an email input, used for storing email address values. Screenshots Crea... 2 个月前
  154. 154 Enabling Inline Editing Enabling Inline Editing Inline Editing is a new feature of ACF Blocks that allows authors to edit block dat... 2 个月前
  155. 155 Extending ACF Blocks With Block Supports Overview The WordPress Block Supports API offers plenty of features to extend your ACF Blocks. Additional a... 2 个月前
  156. 156 Field Settings Each field contains settings to determine where and how data is loaded and saved. These settings can be cus... 2 个月前
  157. 157 File Description The File field allows a file to be uploaded and selected by using the native WP media popup. Sc... 2 个月前
  158. 158 Flexible Content Description The Flexible Content field provides a simple, structured, block-based editor. Using layouts and... 2 个月前
  159. 159 Frequently Asked Questions General Questions What is a custom field? Straight out of the box, WordPress comes with two post types: Pos... 2 个月前
  160. 160 Gallery Description The Gallery field provides an interactive interface for managing a collection of attachments. S... 2 个月前
  161. 161 How to get values from a comment To display custom field values within comments, you will need to setup a custom callback function for the ... 2 个月前
  162. 162 Get values from an options page All the template functions (get_field, the_field, etc) can be used to load values from an options page, how... 2 个月前
  163. 163 Get values from a widget All the template functions (get_field, the_field, etc) can be used to load values from a widget, however, a... 2 个月前
  164. 164 get_field() Description Returns the value of a specific field. Intuitive and powerful (much like ACF itself ?), this fu... 2 个月前
  165. 165 get_field_object() Description Returns the settings of a specific field. Each field contains many settings such as a label, na... 2 个月前
  166. 166 get_field_objects() Description Returns the settings of all fields saved on a specific post. Each field contains many settings ... 2 个月前
  167. 167 get_fields() Description Returns an array of field values (name => value) for a specific post. Parameters get_fields([$p... 2 个月前
  168. 168 get_row() Description Returns an array containing all values (in the format name => value) for the current row within... 2 个月前
  169. 169 get_row_index() Description Returns the current row index within a have_rows() loop. Whilst stepping though the rows of a ... 2 个月前
  170. 170 get_row_layout() Description Returns the current row layout name within a have_rows() loop. This function becomes necessary... 2 个月前
  171. 171 get_sub_field() Description Returns the value of a specific sub field value from a Repeater or Flexible Content field loop.... 2 个月前
  172. 172 get_sub_field_object() Description Returns the settings of a specific sub field within a have_rows() loop. Each field contains man... 2 个月前
  173. 173 Getting Started with ACF Custom Fields & Field Groups ACF gives you the power to add structured data to WordPress, creating custom fields and field groups to sto... 2 个月前
  174. 174 Getting Started with ACF Welcome Advanced Custom Fields is a WordPress plugin which allows you to add extra content fields to your W... 2 个月前
  175. 175 Google Map Description The Google Map field provides an interactive map interface for selecting a location. This field... 2 个月前
  176. 176 Group Description The Group field provides a way to structure fields into groups. It assists in better organizing... 2 个月前
  177. 177 has_sub_field() Description This function is deprecated. Please use the have_rows() function instead. This function is used... 2 个月前
  178. 178 have_rows() Description This function checks to see if a parent field (such as Repeater or Flexible Content) has any ro... 2 个月前
  179. 179 Hiding empty fields Overview It is a common task to hide empty field values from your template. This can be achieved by using c... 2 个月前
  180. 180 How to Activate ACF PRO This guide shows how to activate ACF PRO and your license key. Without a valid license key on the WordPress... 2 个月前
  181. 181 How to Create an Options Page Options pages are setting pages in the WordPress admin area containing fields with the ability to control g... 2 个月前
  182. 182 Get Values From a User All the template functions (get_field, the_field, etc) can be used to load values from a user, with a secon... 2 个月前
  183. 183 Get values from another post All the template functions (get_field, the_field, etc) can be used to load values from another post, howeve... 2 个月前
  184. 184 How to help translate ACF into other languages ACF 6.0 introduces a new way of collecting translations from our contributors. For all the strings containe... 2 个月前
  185. 185 Disable Custom Fields Editing on a Live Site Overview When delivering a website to a client, it may be beneficial to hide the “ACF” menu item. This prev... 2 个月前
  186. 186 How to Include ACF PRO in a Plugin or Theme To include ACF PRO within your plugin or theme, first make sure you are following the rules and conditions,... 2 个月前
  187. 187 Sort a Repeater Field This article will cover how to sort a repeater field based on it’s sub field values using a function called... 2 个月前
  188. 188 Sort a Repeater Field This article will cover how to sort a repeater field based on it’s sub field values using a function called... 9 小时前
  189. 189 How to Update This guide shows how to update the Advanced Custom Fields and Advanced Custom Fields PRO plugins on your we... 2 个月前
  190. 190 Including ACF Within a Plugin or Theme Introduction The Advanced Custom Fields plugin is a powerful tool for developing bespoke websites and web-a... 2 个月前
  191. 191 Inline Editing for ACF Blocks ACF Inline Editing is a groundbreaking feature for ACF Blocks, allowing authors to edit block data by click... 2 个月前
  192. 192 Installing the Free ACF Plugin For instructions on how to install the ACF PRO plugin, please see this guide. The methods outlined below wi... 2 个月前
  193. 193 Installing ACF and ACF PRO Ready to take your WordPress sites to the next level? The ACF WordPress plugin gives you complete control o... 2 个月前
  194. 194 Installing ACF PRO With Composer ACF PRO can be installed using Composer. Please see Installing ACF With Composer for details on installing ... 2 个月前
  195. 195 JavaScript API Introduction Welcome to the Advanced Custom Fields JavaScript API. Here you will find documentation for our... 2 个月前
  196. 196 Known Issues Welcome to the known issues guide for the Advanced Custom Fields plugin. This guide contains information an... 2 个月前
  197. 197 License Activations ACF PRO has always required a license to use PRO features and this will shortly be enforced in the plugin. ... 2 个月前
  198. 198 Move Fields Between Field Groups Once a field is created in one field group, it can be moved to another field group. This allows you to easi... 2 个月前
  199. 199 Moving WP elements (such as the content editor) within ACF fields This article will demonstrate a solution for moving core WordPress elements within ACF fields. This concept... 2 个月前
  200. 200 Multilingual Custom Fields Introduction Translating your WordPress website into multiple languages is one way to increase traffic and ... 2 个月前
  201. 201 Number Description The Number field creates an input limited to numerical values. Screenshots Creating a Number fi... 2 个月前
  202. 202 oEmbed Description The oEmbed field provides an interactive component for embedding videos, images, tweets, audio,... 2 个月前
  203. 203 Options Page Introduced in ACF PRO 6.2, the Options Pages UI simplifies the process of creating new, customized admin an... 2 个月前
  204. 204 Order posts by custom fields This article will demonstrate how to retrieve and sort an array of post objects from the database using nat... 2 个月前
  205. 205 Page Link Description The Page Link field creates an interactive drop-down to select one or more posts, pages, custom... 2 个月前
  206. 206 Password Description The Password field creates an input for providing a password using a masked field. Screenshots ... 2 个月前
  207. 207 How to Query Posts by Custom Fields This article demonstrates how to retrieve an array of post objects from the database using native WordPress... 2 个月前
  208. 208 Querying relationship fields This tutorial will cover the techniques to query relationship fields in both directions. The example used w... 2 个月前
  209. 209 Radio Button Description The Radio Button field creates a list of select-able inputs. Screenshots The Radio Button field... 2 个月前
  210. 210 Range Description The Range field provides an interactive experience for selecting a numerical value between spec... 2 个月前
  211. 211 Register fields via PHP This article will discuss how to register fields and field groups via the functions.php file. There are man... 2 个月前
  212. 212 Register multiple options pages Multiple options pages can be registered by making use of the acf_add_options_page() and acf_add_options_su... 2 个月前
  213. 213 Registering a Custom Post Type Overview Post Types are great for storing data objects other than posts and pages, where WordPress provides... 2 个月前
  214. 214 Registering a Custom Taxonomy Overview Taxonomies are used to classify and categorize individual posts for a post type. WordPress provide... 2 个月前
  215. 215 Relationship Description The Relationship field provides a dual-column component to select one or more posts, pages or c... 2 个月前
  216. 216 Repeater Description The Repeater field provides a neat solution for repeating content – think slides, team members,... 2 个月前
  217. 217 The Requirements to Run ACF The minimum requirements to run ACF and ACF PRO are currently: WordPress 6.0 PHP 7.4 We regularly review ou... 2 个月前
  218. 218 Save ACF Block Field Values to Post Meta By default, WordPress stores a block’s field data inside the block’s HTML comment in post_content. This is... 2 个月前
  219. 219 Schema.org Output Formats Configure how ACF field values are formatted in JSON-LD output. Description When mapping a field to a Schem... 2 个月前
  220. 220 Schema.org Property Mapping Map ACF fields to Schema.org properties for structured data output. Description Each ACF field can be mappe... 2 个月前
  221. 221 Schema.org Qualified Properties Use dot notation to map fields to nested Schema.org objects. Description Some Schema.org properties expect ... 2 个月前
  222. 222 Select Description The Select field creates a dropdown list with selectable choices. Screenshots Creating a Select... 2 个月前
  223. 223 Select2 v3 Deprecation Select2 v3 Deprecation What’s Happening? Advanced Custom Fields (ACF) is deprecating support for version 3 ... 2 个月前
  224. 224 How to set placeholder content in custom ACF Blocks ACF Blocks make it possible to build custom WordPress® blocks using PHP and Advanced Custom Fields without ... 2 个月前
  225. 225 Shortcode Shortcodes can be used within a WYGIWYG to display another field’s value. To learn more about shortcodes, c... 2 个月前
  226. 226 Structured Data for ACF Blocks Output Schema.org structured data from ACF Block fields. Description ACF Blocks can automatically output JS... 2 个月前
  227. 227 Synchronized JSON Synchronized JSON is a feature (added in version 5.1.5) which detects changes to local JSON files and allow... 2 个月前
  228. 228 Tab Description The Tab field is used to group together fields into tabbed sections. When editing a field group... 2 个月前
  229. 229 Taxonomy Description The Taxonomy field allows the selection of one or more taxonomy terms. Screenshots Creating a T... 2 个月前
  230. 230 Testing Pre-Release Versions of ACF PRO Participating in the ACF PRO pre-release program is a great way to test new features before the official la... 2 个月前
  231. 231 Text Description The Text field creates a basic text input, useful for storing single string values. Screenshots... 2 个月前
  232. 232 Text Area Description The Text Area field creates a basic textarea input, useful to store simple (i.e., unstyled) par... 2 个月前
  233. 233 the_field() Description Displays the value of a specific field. Intuitive and powerful, this function can be used to ou... 2 个月前
  234. 234 the_flexible_field() Description This function is deprecated. Please use the have_rows() function instead. This function is used... 2 个月前
  235. 235 the_repeater_field() Description This function is deprecated. Please use the have_rows() function instead. This function is used... 2 个月前
  236. 236 the_sub_field() Description Displays the value of a specific sub field value from a Repeater or Flexible Content field loop... 2 个月前
  237. 237 Time Picker Description The Time Picker field creates a jQuery time selection popup. Screenshots The Time Picker field ... 2 个月前
  238. 238 True / False Description The True / False field allows you to select a value that is either 1 or 0. Screenshots The True... 2 个月前
  239. 239 update_field() Description Updates the value of a specific field. Parameters update_field($selector, $value, [$post_id]); ... 2 个月前
  240. 240 update_row() Updates a row of data for an existing Repeater or Flexible Content field value. Parameters update_row($sele... 2 个月前
  241. 241 update_sub_field() Description Updates the value of a specific sub field. This function can be used inside or outside of a ha... 2 个月前
  242. 242 update_sub_row() Updates a row of data for an existing Repeater or Flexible Content sub field value. This function can be us... 2 个月前
  243. 243 URL Description The URL field is a text input specifically designed for storing web addresses. Screenshots Crea... 2 个月前
  244. 244 User Description The User field allows the selection of one or more users. This field type is useful for creatin... 2 个月前
  245. 245 Using acf_form to create a new post This article will cover how to create a form on the front end of your website to add new content. Getting s... 2 个月前
  246. 246 Using Context With ACF Blocks ACF Blocks opens the door to more creative building possibilities. One example we previously explored was u... 2 个月前
  247. 247 Using the ACF Datastore The ACF datastore is an opt-in feature that integrates ACF fields with Gutenberg’s native wp.data store. W... 2 个月前
  248. 248 Troubleshooting Validation Security Nonce Errors With ACF 6.3.12 and above, there are two potential errors that can appear if ACF is unable to verify the se... 2 个月前
  249. 249 What’s New With ACF Blocks in ACF 6 ACF 6.0 includes ACF Blocks Version 2. This next generation of ACF Blocks brings us much closer to the nati... 2 个月前
  250. 250 Working with Nested Repeaters Creating and displaying nested repeater / flexible content fields is very easy using the Advanced Custom Fi... 2 个月前
  251. 251 wp acf json export Exports field groups, post types, taxonomies, and options pages to a JSON file. Description Exports ACF ite... 2 个月前
  252. 252 wp acf json import Imports field groups, post types, taxonomies, and options pages from a JSON file. Description Reads an ACF ... 2 个月前
  253. 253 wp acf json status Shows the sync status for ACF item types (field groups, post types, taxonomies, options pages). Description... 2 个月前
  254. 254 wp acf json sync Syncs local JSON changes to the database. Description Imports pending JSON changes for ACF item types (fiel... 2 个月前
  255. 255 wp acf json Manages ACF JSON import, export, and synchronization for item types (field groups, post types, taxonomies, ... 2 个月前
  256. 256 WP-CLI Commands All available WP-CLI commands for ACF and ACF PRO, with links to documentation for usage and subcommands. C... 2 个月前
  257. 257 WP REST API Integration Since version 5.11, ACF has included support for viewing and managing custom fields via the WordPress REST ... 2 个月前
  258. 258 Wysiwyg Editor Description The Wysiwyg field creates a WordPress content editor as seen in Posts and Pages. Wysiwyg is an ... 2 个月前