After a long awaited arrival, the all new ACF v4.3.0 is out and available for download! To co-inside with this release, you will also find updates for both the repeater and flexible content field add-ons. This release includes some powerful functionality for sub field conditional logic, which I have showcased in a demo below.
Core: get_field can now be used within the functions.php file
Core: Added new Google maps field
Core: Added conditional logic support for sub fields – will also require an update to the repeater / flexible content field add-on to work
Core: Added required validation support for sub fields – will also require an update to the repeater / flexible content field add-on to work
API: Added new function have_rows()
API: Added new function the_row()
API: Fixed front end form upload issues when editing a user
API: Fixed front end form bug where the wrong post_id is being passed to JS
Export: wrapped title and instructions in __() function
Core: Filter out ACF fields from the native custom field dropdown
Revisions: Improved save functionality to detect post change when custom fields are edited
Core: Add field group title for user edit screen
Field group: Add ‘toggle all’ option to hide from screen
Taxonomy field: Add new filter for wp_list_categories args
Taxonomy field: Fixed JS bug causing attachment field groups to disappear due to incorrect AJAX location data
Tab field: Corrected minor JS bugs with conditional logic
Relationship field: Values now save correctly as an array of strings (for LIKE querying)
Post object field: Values now save correctly as an array of strings (for LIKE querying)
Image field: Added mime_type data to returned value
Field field: Added mime_type data to returned value
Core: Lots of minor improvements
Conditional logic and required sub fields
As shown in the video above, sub fields now have settings for required and conditional logic! This adds a whole new level of customization to the input screen for your clients, I hope you enjoy playing around with these settings on your current or next project!
Please welcome a new function to the API; have_rows and the_row. These new functions fit seamlessly into any WP template as they follow the standard have_posts and the_post principles. Please read the docs to see how you can use them to improve your nested repeater loops!
That’s it for now. I hope you enjoy the new update!
About the Author
Elliot is a web developer working "down under" on the Advanced Custom Fields WordPress plugin in Australia. Having a previous life in design, Elliot is passionate about all things interactive. Enjoys skateboarding, coffee and building things.