Skip Navigation

[Resolved] URL output raw not working

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

Problem:
URL output raw not working using the types_render_field

Solution:
User was not passing the argument correctly.

You can find the proposed solution, in this case with the following reply:

$link = types_render_field("link", array("post_id" =>$child_post->ID,'output'=>'raw'));

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

This support ticket is created 6 years, 1 month 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 torstenS-5 6 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1162767
2018-12-10_toolset-types-output-raw.jpg

I am trying to show some Urls with title, everything works fine but output = raw

Link to a page where the issue can be seen: hidden link

#1162808

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - what if you try to use the following code - where the output attribute should be passed with he first array only:

$link = types_render_field("link", array("post_id" =>$child_post->ID,'output'=>'raw'));
#1162836

My issue is resolved now. Thank you!