The Advanced Custom Fields Flexible Content Addon acts as a blank canvas to which you can add an unlimited number of layouts with full control over the order.
Advanced Custom Fields Flexible Content Addon
The Flexible content field acts as a blank canvas to which you can add an unlimited number of layouts with full control over the order.
Build up your page with layouts
Similar to the repeater field, this field contains sub-fields. However, instead of 1 set of subfields, the flexible content field allows you to create an infinite set of subfield groups (called layouts). With these layouts predefined, you can then add them into your field whenever you want and wherever you want.
Template Usage
Using the field within you template is easy! Within a loop you can query the current row layout. Then it’s just a simple case of constructing the relevant HTML by using the get_sub_field() and the_sub_field() functions. The flexible content field introduces 2 new functions:
Read the Flexible Content Field documentation for code examples »
Requirements
- ACF version 3.1.0 or above
Reviews
There are no reviews yet.