Home

Awesome

ACF Field Type Template

Welcome to the Advanced Custom Fields field type template repository. Here you will find a starter-kit for creating a new ACF field type. This start-kit will work as a normal WP plugin.

For more information about creating a new field type, please read the following article: http://www.advancedcustomfields.com/resources/tutorials/creating-a-new-field-type/

Structure

step 1.

This template uses PLACEHOLDERS such as FIELD_NAME throughout the file names and code. Use the following list of placeholders to do a 'find and replace':

step 2.

Edit the FIELD_NAME-v5.php and FIELD_NAME-v4.php files (now renamed using your field name) and include your custom code in the appropriate functions. Please note that v4 and v5 field classes have slightly different functions. For more information, please read:

step 3.

Edit this README.md file with the appropriate information and delete all content above and including the following line.


ACF FIELD_LABEL Field

DESCRIPTION


Description

EXTENDED_DESCRIPTION

Compatibility

This ACF field type is compatible with:

Installation

  1. Copy the acf-FIELD_NAME folder into your wp-content/plugins folder
  2. Activate the FIELD_LABEL plugin via the plugins admin page
  3. Create a new field via ACF and select the FIELD_LABEL type
  4. Please refer to the description for more info regarding the field type settings

Changelog

Please see readme.txt for changelog