Okay
  Public Ticket #2960008
put_items() args
Closed

Comments

  • James started the conversation

    Hello, 

    I am using the widget builder to create a post grid that will display custom posts and would like to know if the put_items() function is able to add a secondary loop item at every nth positions of the loop, example would be to loop through the posts and display ad or cta card after every 3rd post? Or if there is a way to mod the loop with an attribute to allow someone to add a card or image to insert at every x positions, this is common when displaying vehicle inventory in a grid. Thank you for any help 

    James

  •   Max replied privately
  • James replied

    Hello Max,

    here is a live example of what i want to be able to do. https://www.bobruthford.com/inventory?showPleaseCall=true 

    notice the grid is looping through and at certain spots it inserts a card that is not a vehicle but just a secondary card. 

  •   Max replied privately
  • James replied

    Hi, thank you for getting back so quickly. Yes I think if you could add the option for a second template that would be  a great feature that I could utilize. I will also try to get it to work using an if statement with item.index. 

    James 

  •   Max replied privately