Categoría: BRICKS LOOP INDEX PRO

  • Query Loop Index in Bricks

    This Pro tutorial provides the code for getting the index of each post in Bricks‘ query loops. This can be used for either outputting the post number (screenshot below) or for checking for nth post and conditionally outputting elements (Ex.: How to Insert Element(s) Between Query Loop Posts in Bricks). Note: If you have BricksExtras…

  • Bricks Query Loop – How to Insert Elements After Every Nth Post

    Update: Follow this tutorial instead. This Pro tutorial provides the steps to output element(s) in a Bricks‘ query loop after every nth post. Use case: Show an ad after every 3rd post. This is based on the previous How to Insert Element(s) Between Query Loop Posts in Bricks tutorial. It is possible to apply display:…