ACF: Creating a new field type
The Advanced Custom Fields plugin is packed with loads of useful field types such as text, image and WYSIWYG. However, when working on a project, it may be necessary to create a new type of field to save & load unique data.
This guide will demonstrate how to create a new field type for the ACF plugin.
Download
To make life easier, we put together a comprehensive starter-kit for creating an ACF field type. This starter-kit contains all the necessary files to create a WP plugin and is heavily commented so you can build your field type quickly and confidently!
Field Type Template on Github
Please download a copy of the ACF field type template starter-kit from this Github repository (Click the Green Download Zip button).
https://github.com/AdvancedCustomFields/acf-field-type-template
Once downloaded, take a look around. Here is a list of the files and folders included.