Advanced Custom Fields (ACF) Support

SNIP’s support for Advanced Custom Fields (ACF) continues to grow. In this blog post I collect some data that is important for the usage.

Supported Fields

Here is the list of supported fields:

Basic
Textsince 2.24.0
Text Areasince 2.24.0
Numbersince 2.24.0
Rangesince 2.24.0
E-Mailsince 2.24.0
URLsince 2.24.0
Passwordnot supported
Content
Imagesince 2.24.0
(All return types [array|url|ID] will return the full URL to the high quality image)
Filesince 2.24.0
(All return types [array|url|ID] will return the full URL to the file)
Wysiwyg Editorsince 2.24.0
(Will filter most all HTML codes that are not allowed. Can be changed by the wpbuddy/rich_snippets/allowed_html hook).
oEmbednot supported
Gallerysince 2.24.0
(No matter which return value [array|url|ID] was specified, the URL to the original image is returned.).
Choice
Selectsince 2.24.0
Checkboxsince 2.24.0
Radio Buttonsince 2.24.0
Button Groupnot supported
True / Falsesince 2.24.0
Relational
Linksince 2.24.0
Post Objectsince 2.24.0
You can access the WP_Post properties using arrows in the field name (read more here).
Page Linksince 2.24.0
Returns the URL to the page.
Relationshipnot supported
Taxonomysince 2.24.0
You can access the WP_Term properties using arrows in the field name (read more here).

User
since 2.24.0
You can access the WP_User properties using arrows in the field name (read more here).
jQuery
Google Mapsince 2.24.0
Access the following properties using arrows as described here: address, lat, lng, zoom, place_id, name, city, state, state_short, post_code, country, country_short
Date Pickersince 2.24.0
The returned date will always be ISO 8601 format.
Date Time Pickersince 2.24.0
The returned date and time will always be ISO 8601 format.
Time Pickersince 2.24.0
The returned time will always be in the format of: hh:mm:ss.
Color Pickernot supported (yet)
Layout
Messagenot supported
Accordionnot supported
Tabnot supported
Groupnot supported
Repeatersince 2.25.0
Flexible Contentnot supported (yet)
Clonenot supported (yet)

Since 2.31.0 it’s also possible to run through a repeater field in the first level of a snippet.