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 | – |
Text | since 2.24.0 |
Text Area | since 2.24.0 |
Number | since 2.24.0 |
Range | since 2.24.0 |
since 2.24.0 | |
URL | since 2.24.0 |
Password | not supported |
Content | – |
Image | since 2.24.0 (All return types [array|url|ID] will return the full URL to the high quality image) |
File | since 2.24.0 (All return types [array|url|ID] will return the full URL to the file) |
Wysiwyg Editor | since 2.24.0 (Will filter most all HTML codes that are not allowed. Can be changed by the wpbuddy/rich_snippets/allowed_html hook). |
oEmbed | not supported |
Gallery | since 2.24.0 (No matter which return value [array|url|ID] was specified, the URL to the original image is returned.). |
Choice | – |
Select | since 2.24.0 |
Checkbox | since 2.24.0 |
Radio Button | since 2.24.0 |
Button Group | not supported |
True / False | since 2.24.0 |
Relational | – |
Link | since 2.24.0 |
Post Object | since 2.24.0 You can access the WP_Post properties using arrows in the field name (read more here). |
Page Link | since 2.24.0 Returns the URL to the page. |
Relationship | not supported |
Taxonomy | since 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 Map | since 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 Picker | since 2.24.0 The returned date will always be ISO 8601 format. |
Date Time Picker | since 2.24.0 The returned date and time will always be ISO 8601 format. |
Time Picker | since 2.24.0 The returned time will always be in the format of: hh:mm:ss. |
Color Picker | not supported (yet) |
Layout | – |
Message | not supported |
Accordion | not supported |
Tab | not supported |
Group | not supported |
Repeater | since 2.25.0 |
Flexible Content | not supported (yet) |
Clone | not supported (yet) |
Since 2.31.0 it’s also possible to run through a repeater field in the first level of a snippet.