This tutorial explains how to use the Post Loop Builder element in Breakdance to create custom designs and layouts to display a list of posts on your website.
Before you add the Post Loop Builder element to Breakdance, you should first create a Global Block. The Global Block will contain the layout for each individual post that is used within the Post Loop Builder.
You can adjust the query used by the Post Loop Builder to control what posts are displayed through the Query section. The Query section accepts WP_Query arguments to determine the posts shown on the front end. There are three different query types available:
When the Custom Query option is used, there will be two different sources available:
You may also further customize the query by setting the number of posts to show per page, the total number of posts loaded by the query, and offsetting (skipping) a certain number of posts.
It is possible to filter out any unwanted posts from displaying on the front end using the Conditions and Meta Query options.
You can use the Order section to specify how posts are ordered within the Post Loop Builder.
After you’ve set the Global Block and defined the query, you can customize the layout for how the posts will display on the page.
In the List section of the Design Tab, you can change the Layout of the Post Loop Builder with three different settings:
Each layout has additional settings you can use to fine-tune the layout.
The Post Section will allow you choose a background color and set the borders and paddings for the posts. Please note that to modify the layout of each post, you will need to edit the Global Block you selected.
The Container Section is where you can choose the overall styles for the parent container of all the posts.
The Post Loop Builder element provides several different pagination options. You may learn more about pagination here.
The Filter Bar allows you to utilize Isotope filtering to filter the posts on the front end. More information about using Isotope filtering may be found here.
Please note that the Filter Bar and Pagination options cannot be activated at the same time.