Navigation überspringen

[Gelöst] Build the table part on multiple instances field

This support ticket is created vor 5 Jahren, 7 Monaten. 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)

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Luo Yang vor 5 Jahren, 7 Monaten.

Assistiert von: Luo Yang.

Author
Artikel
#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