Skip Navigation

[Resolved] Build the table part on multiple instances field

This support ticket is created 5 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

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
- 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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 5 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#1282379

Pat

Hi Luo,

That's working fine. Now, I would like to built the table part and need to return something like : </td><td></td><td></td><td>
The number of </td><td> sequences depending of the nb of your function.

I have tried but it seems that the </td><td> is not rendered correctly.
Any idea?
Regards
Pat

#1282413

Dear Pat,

You can use [wpv-for-each] to output the HTML tags, for example:

<tr>
[wpv-for-each field="wpcf-my-date-field"]<td>...</td>[/wpv-for-each]
</tr>

More help:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-for-each