Skip Navigation

[Resolved] Loop custom field type in a cutom post

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 2 replies, has 2 voices.

Last updated by anatolyF 6 years, 7 months ago.

Assigned support staff: Luo Yang.

Author
Posts
#278472

I am trying to:
Show a list of websites links (custom field) each in a separate row for a Distributor (custom post type)

I visited this URL:
hidden link

for example:
BMS-Trading
t. +7 495 646-82-06
e. sales@bms-trading.ru
web. hidden link hidden link

I expected to see:
web. hidden link
web. hidden link

Instead, I got:
web. hidden link hidden link

–——
I am not sure what is the best way to separate each of the multiple custom fields in it's own row with it's own design/label.

#278732

Luo Yang
Supporter

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

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

Is the websites links a multiple instance custom field?

I suggest you try Views shortcode wpv-for-each:
Iterate through multiple items in a post meta field and output the enclosed text for each item. Including Types repeating fields.
https://toolset.com/documentation/views-shortcodes/#wpv-for-each

#278736

Thank you very much