Problem:
The customer asked how to get only the first and the last instance value from a repeating field using the "wpv-for-each" shortcode.
Solution:
Guided that the "wpv-for-each" shortcode can be used to get the first instance of the repeating field but not the last, so it will require some custom code.
https://toolset.com/forums/topic/performing-logic-on-repeating-field-group-using-wpv-for-loop/#post-2421447
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-for-each
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 |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Karachi (GMT+05:00)
This topic contains 2 replies, has 2 voices.
Last updated by Alex Russell 1 year, 9 months ago.
Assisted by: Waqar.