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.