Using Advanced Custom Fields Repeater Fields with Breakdance
This document provides an overview of how to utilize Advanced Custom Fields (ACF) repeater fields within Breakdance to dynamically display content on your website.
ACF repeater fields allow you to add a variable number of subfields (such as text, images, etc.) to your posts or custom post types.
Using the Repeater Field in Breakdance
Add a Repeater field element in Breakdance
The Repeater field contains two options: “Repeated Block” and “Field”.
In the “Repeated Block” option, select the Global Block that contains the layout for the ACF Repeater field.
In the “Field” option, select the ACF Repeater field that you want to use.
Adjust the layout via the Design tab as you wish.
Adding ACF Repeater Fields to Global Blocks
Open the Global Block you want to use for the ACF Repeater in Breakdance.
Add your desired element(s) and click the database icon for the elements fields to access the dynamic data options.
Under the ACF category, find the subfields for the ACF Repeater and select them.
Modify the layout for the Global Block as desired.
The selected fields will now display for each Repeater item when you use a Breakdance Repeater field element that uses this Global Block.
Additional Notes
This guide demonstrates the power of combining ACF’s repeater fields with Breakdance’s dynamic content capabilities. By following these steps, you can create complex, dynamic layouts for your listings or any other custom post types, enhancing the visual appeal and functionality of your WordPress site.