How to Insert Element(s) Between Query Loop Posts in Bricks

This Pro tutorial shows how we can insert a Div (or any custom HTML) after nth post (Ex.: after 5th post) in the list of posts output via a query loop in Bricks.

This can be used to insert an ad/banner or any other functionality like Top Posts in between posts.

Step 1

Define a custom function that returns the current index in the query loop.

This is a Pro members-only tutorial.

To get full access, login below or sign up for a Pro Account

Leave the first comment