Problem: I have a repeating custom field, and I would like to use wpv-for-each to loop over each field and display them in a bootstrap grid.
Solution: The wpv-for-each structure isn't designed to support conditionals, so it's not possible to include row wrappers like this. A View, on the other hand, provides options for building these bootstrap-style grids with automatic rows. In order to use a View like this, you must create a post type that holds your images. The new post type should be a child of the post "LOOKING TO THE OTHER SIDE OF THINGS", and each image should be a custom field in a separate post in the new post type. Then you can loop over all the child posts of the current post in your View, and include row-based wrapper containers.
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.
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 5 replies, has 2 voices.
Last updated by 6 years, 6 months ago.
Assisted by: Christian Cox.