Tell us what you are trying to do?
I want to add a div after the 6th result in Views. I just want to repeat this once not for every 6 result such as 6, 12, 18, 24, etc.
Any help would be greatly appreciated!
Hello and thank you for contacting Toolset support.
I believe this will need custom code. However, I must suggest a limited solution that won't require custom code.
You can use two views, the first one will display the 6 first posts. The second one will skip 6 posts. And you put the div between them. This solution is limited because it would not handle pagination and search correctly. Basically, because those are two views instead of one.
Otherwise, this will require custom code. Two possible ways:
1. Inject a special post after the 6th post using a hook. Check the custom code in this similar, but slightly different issue, in this reply https://toolset.com/forums/topic/adding-a-static-item-to-a-view/#post-1660439
2. Use a custom shortcode that will output the div or (true, if you want to use it inside a conditional) only the first time. And using inside an wpv-item shortcode. Read more about it here https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-154400
And here https://toolset.com/documentation/legacy-features/views-plugin/digging-into-view-outputs/
I hope this helps. Let me know if you have any questions.
My issue is resolved now. Thank you!