Update on 16 Aug 2023: Follow this tutorial instead.
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 Pro tutorial provides the steps to create a custom query type for outputting the values of one or more instances/items/rows of a cloneable custom…