Skip Navigation

[Waiting for user confirmation] Display repeating individual fields with Toolset blocks

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 3 replies, has 1 voice.

Last updated by Minesh 2 days, 7 hours ago.

Assisted by: Minesh.

Author
Posts
#2785124
Screen Shot 2024-11-21 at 4.38.01 PM.png
Screen Shot 2024-11-21 at 4.38.47 PM.png

__Tell us what you are trying to do?__
I have a single line field in a toolset type for contacts (people) that allows multiple values, one for each language that a person speaks.
On the content template for the the 'People' single content type I want to be able to list all the languages a person speaks.

When I insert a block and assign it the value from the 'People' field for 'Languages Spoken' it only outputs the first language.

__Is there any documentation that you are following?__

Not that explains how this is supposed to work.

Is there a similar example that we can see?

Not that I know of.

What is the link to your site?

hidden link

Michaelle speaks English and French but only English shows.

I've actually created the field twice. Once within the People fields group as a single field that allows multiple values, and once as a repeating field group for that content type. Can't get either to work.

#2785285

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please try to add "Repeating Field" block and then source of this block chose your repeating field and check if that help you to resolve your issue.

#2785291
Screen Shot 2024-11-22 at 9.28.54 AM.png

K. That works. Though I don't know how. I create the block, but the block settings don't actually let me choose the field in question. And yet the field data appears. See attached.

As a developer I could use some feedback from the block editor about which field I can choose and the fact that I've chosen it.

Also, some styling options would be good. It appears as an ordered list, which is semantically fine, but I wish I didn't have to go to the custom CSS field to make it look like it should.

#2785615

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I'm not sure why field is not offered but there is Styling feature which you can use the "Style Setting" tab.

If you want to have more control then instead of using block, you should try to add shortcode or "Fields and Text" block and add the shortcode [wpv-for-each].
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-153482

For example:

<ol>[wpv-for-each field="wpcf-{my-field-slug}"]
<li>[types field="my-field-slug"][/types]</li>
[/wpv-for-each]
</ol>

Where:
- Replace {my-field-slug} with your original field slug