Problem: I would like to display the results of my View in rows and columns of 3. The "split" feature doesn't seem to be doing what I want.
Solution: Use the "split" feature to split the results into a number of groups, but use the "wrap" feature to split the results into repeating groups of a specific number.
[wpv-layout-start] [wpv-items-found] <wpv-loop wrap="3" pad="true"> [wpv-item index=1] <div class="row"> <!-- Open the row --> <div class="col-sm-4">First column</div> [wpv-item index=2] <div class="col-sm-4">Second column</div> [wpv-item index=3] <div class="col-sm-4">Third column</div> </div><!-- Close the row --> [wpv-item index=pad] <div class="col-sm-4">Pad second column</div> [wpv-item index=pad-last] <div class="col-sm-4">Pad last column</div> </div><!-- Close the row --> </wpv-loop> [/wpv-items-found] [wpv-no-items-found][wpml-string context="wpv-views"]<strong>No featured ads to display</strong>[/wpml-string][/wpv-no-items-found] [wpv-layout-end]
Relevant Documentation:
https://toolset.com/documentation/user-guides/digging-into-view-outputs/
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 1 Antwort, has 2 Stimmen.
Last updated by Christian Cox vor 5 Jahre, 8 Monate.
Assisted by: Christian Cox.