Problem:
How to display or show index for repeating field
Solution:
To display the repeating field index you need to add the custom shortcode to your current theme's functions.php file.
add_shortcode('show_index', 'func_show_index'); function incrementor() { static $i = 1; return $i ++; }
You can find proposed solution in this case with the following reply:
=> https://toolset.com/forums/topic/echo-index-in-repeting-fields-in-wpv-for-each/#post-604274
Relevant Documentation:
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 |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10: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/Kolkata (GMT+05:30)
This topic contains 2 replies, has 2 voices.
Last updated by johanL-2 6 years, 2 months ago.
Assisted by: Minesh.