Sauter la navigation

[Résolu] wp-for-each-not working

This support ticket is created Il y a 5 années et 7 mois. 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)

Marqué : ,

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Luo Yang Il y a 5 années et 7 mois.

Assisté par: Luo Yang.

Auteur
Publications
#1345559

I try to get a list of related posts created from a list of ID in a repeatable field but I only get a list of the same post

#1345727

Hello,

I have tried these codes in my localhost, it works fine:

<ol>[wpv-for-each field="wpcf-list-of-id"]<li>[wpv-post-title item='[types field="list-of-id"][/types]']</li>[/wpv-for-each]</ol>

Please replace "list-of-id" with your custom repeatable field slug.

More help:
https://toolset.com/documentation/user-guides/views-shortcodes/item-attribute/