This guide covers the process of leveraging Advanced Custom Fields (ACF) relationship fields within loop elements in Breakdance. This feature enables the dynamic display of content based on specified relationships in ACF.
Before starting, we recommend having the ACF relationships already created and populated.
After applying the query, the loop element will dynamically display posts that are related through the specified ACF relationship field. Changing the relationships within ACF will automatically update the displayed posts in Breakdance, ensuring a dynamic and relevant content display based on your ACF configurations.
The ACF relationship field for custom queries does not support pagination. If you must use pagination, you must create an array query to return the IDs of the posts and the post type.
This method of integrating ACF relationship fields into Breakdance loop elements is particularly useful for creating related posts sections, showcasing associated products, articles, or any scenario where displaying dynamically related content is desired. The flexibility of Breakdance’s query builder, combined with the power of ACF’s relationship fields, opens up vast possibilities for custom content display on your WordPress site.