Skip Navigation

[Resolved] wp-for-each-not working

This support ticket is created 5 years, 2 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, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#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/