[Resolved] wp-for-each-not working

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.

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 9 months, 2 weeks ago.

Assigned support staff: 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

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

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/