Skip Navigation

[Resolved] I want to change the case of the field output

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

Last updated by Minesh 5 months, 1 week ago.

Assisted by: Minesh.

Author
Posts
#2702629

below is my shortcode to get the field content

[types field='app-1st-prefer-session' item='[types field='application-id'][/types]' output="raw"][/types]

I have a function

function fn_uppercase($atts) {
	$text = $atts['v'];
	return(strtoupper($text));
}
add_shortcode('upper', 'fn_uppercase');

if I pass the result to the shortcode

[upper v="[types field='app-1st-prefer-session' item='[types field='application-id'][/types]' output="raw"][/types]"]

It returns all capital letter [/types]"]

Please advise how I can do that?

#2702753

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please try to use the following shortcode:

[upper v="[types field='app-1st-prefer-session' item='[types field='application-id'][/types]' output='raw'][/types]"]

Does that help you to resolve your issue?