Skip Navigation

[Resolved] Render radio button value instead of title

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

Problem:
Render radio button value instead of title using types PHP API function

Solution:
Using the Types field argument output=>raw you can display the raw value stored to the database.

You can find the proposed solution in this case with the following reply:
=> https://toolset.com/forums/topic/render-radio-button-value-instead-of-title/#post-1773491

Relevant Documentation:
=> https://toolset.com/documentation/customizing-sites-using-php/functions/#radio

This support ticket is created 4 years, 3 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 suhelaK 4 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#1773477

Tell us what you are trying to do?

I want to render my radio button's value instead of the title

Is there any documentation that you are following?

https://toolset.com/documentation/customizing-sites-using-php/functions/

Is there a similar example that we can see?
hidden link

the suit type table data, as well as tabbed buttons, are from a radio button custom field, I used

types_render_field("fp-suite-type", array(get_the_ID())) to get the value but it only renders the title

#1773491

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Using the Types field argument output=> raw you can display the raw value stored to the database.

Can you please try to use the following;

echo types_render_field("fp-suite-type", array('output'=>'raw','item'=>get_the_ID()));
#1773585

My issue is resolved now. Thank you!