Skip Navigation

[Resolved] Popup up for youtube video

This support ticket is created 3 years, 8 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 3 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#2032505

Tell us what you are trying to do?
I have a CF in a post type that stores youtube urls. I am using a view to display them in a content template (IdvFly hidden link) but i want them to play in a pop-up. I believe Toolset does not have that functionality so am trying to use WP Video popup.

It requires a shortcode as follows [wp-video-popup video="hidden link"]

I've been trying to create a view that uses this code but uses my CF field in place of their URL in the code above. I am not a coder and can not seem to get it to work. Any help appreciated.

<!-- wpv-loop-start -->
<ul class="wpv-loop js-wpv-loop">
<wpv-loop>
[wpv-view video_url = field="youtube" ]

[wp-video-popup video="$video_url"]

</wpv-loop>

#2032865

Hello,

I assume we are talking about a custom embedded field "youtube" created with Toolset Types plugin, if it is, you can display the "youtube" field value with shortcode:
[types field='youtube' output='raw'][/types]

And use above shortcode in your shortcode, like this:
[wp-video-popup video="[types field='youtube' output='raw'][/types]"]

More help:
https://toolset.com/documentation/customizing-sites-using-php/functions/#embedded-media
‘raw’=Display raw data stored in DB. No other formatting attributes