Skip Navigation

[Resolved] Not outputting raw data

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 8 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

This topic contains 2 replies, has 1 voice.

Last updated by Andrew 8 years, 9 months ago.

Author
Posts
#320107

I am trying to: have types output a field in my views template - but it's not inputting the RAW url - instead it's breaking entirely -- here's what's entered in the views template ---

<a href="[types field="ticket-link" output="raw"][/types]" target="_blank" class="buy-tickets btn btn-warning btn-lg">Buy Tickets</a>

Here's what it outputs on the frontend ---

<a href="[types field=" ticket-link"="" output="raw" ][="" types]"="" target="_blank" class="buy-tickets btn btn-warning btn-lg">Buy Tickets</a>

I visited this URL: hidden link

I expected to see: a URL when clicked

Instead, I got: an error 404

#320115

I seemed to have fixed the above issue with the following workaround -- https://make.wordpress.org/core/2015/07/23/changes-to-the-shortcode-api/

but am still unable to fix the following area ---

[wpv-if souncloud_id= "wpcf-souncloud-id" evaluate="!empty($souncloud_id)"]<div class="soundcloud">
<iframe width="100%" height="450" scrolling="no" frameborder="no" src="<em><u>hidden link</u></em> field="souncloud-id" output="raw"][/types]&auto_play=false&hide_related=false&visual=true"></iframe></div>
[/wpv-if]
[wpv-if youtube_id= "wpcf-youtube-id" evaluate="!empty($youtube_id)"]<div class="youtube">
<iframe width="100%" height="411" scrolling="no" frameborder="no" src="//www.youtube.com/embed/[types field="youtube-id" output="raw"][/types]"></iframe></div>
[/wpv-if]

Neither the Soundcloud ID nor the YouTube ID will populate properly - breaking the embedded media.

#320135

I just updated to views 1.9.1b2 and everything is fixed

thanks for the release

The forum ‘Types Community Support’ is closed to new topics and replies.

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