Skip Navigation

[Resolved] Separate custom fields (multiple-instances of this field)

This thread is resolved. Here is a description of the problem and solution.

Problem:
Separate custom fields (multiple-instances of this field)

Solution:
To display the repeating field with comma, you can use the separator attribute with types shortcode.

You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/separate-custom-fields-multiple-instances-of-this-field/#post-948454

Relevant Documentation:
https://toolset.com/documentation/user-guides/repeating-fields/#Displaying%20Repeating%20Fields

This support ticket is created 6 years, 7 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
- 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 2 replies, has 2 voices.

Last updated by adriaB 6 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#948343

I have created a custom field that allows multiple-instances of this field. ("País")

hidden link

It this example -> "País: Estats Units Suècia" and I would like "País: Estats Units, Suècia"

When I visualize that field it appears separated by a blank space and is confusing.
How can I make it separate with commas?

Thank's

#948454

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - to display the repeating field with comma, you can use the separator attribute with types shortcode.

For example:

[types field="my-number" separator=", "][/types]

More info:
https://toolset.com/documentation/user-guides/repeating-fields/#Displaying%20Repeating%20Fields

#949004

Thank's you very much!