Skip Navigation

[Resolved] usermeta repeater field

This support ticket is created 7 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 2 voices.

Last updated by Minesh 7 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#483857

Is there a way to display with shortcode user repeater field ?
i have a repeater field but seems there's not something like:
[wpv-for-each usermeta='wpcf-useremeta-field']
AM i wrong ?
How can i achieve ? Only by custom php ?

#484012

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

[wpv-for-each] loop shortcode iterate through multiple items in a post meta field and output the enclosed text for each item. Including Types repeating fields. That means it only works in custom post fields, it does not work for custom user fields.

In your case you can try like this:

<ol><li>[types usermeta="your-user-field-name" separator="</li><li>" user_current="true"][/types]</li></ol>
#484042

ok i understood... so if I have a repeatable image and want to wrap the img in a tag to enable lightbox... can i use shortcodes concatanation inside separator attribute ?

#484050

Minesh
Supporter

Languages: English (English )

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

Well - what kind of shortcode you want to use here.

In our Docs its listed that you can use text or html tags - so shortcodes will not be allowed.
separator:
text or html tags to insert between each field

More info:
=> https://toolset.com/documentation/customizing-sites-using-php/functions/#image

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.