Skip Navigation

[Resolved] Displaying a youtube video from a user

This support ticket is created 4 years, 11 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/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by stirea 4 years, 11 months ago.

Assisted by: Waqar.

Author
Posts
#1428725

Hello,

I am trying to have a user fill in a form where he provides a youtube URL and then display that video on the CPT single view (content template).

I am not able to do it, here is what I have found out:

The toolset video block has a dynamic capability but it seems like it only recognizes "video" field. The "video" field on the form prompts the user to upload a video from his/her computer but does not allow the user to input an URL (like youtube for example).

Alternatively, if I use an "embedded media" type field on the entry form (allowing to input a video URL), that field will not be listed when setting up the toolset video block.

Am I missing something?

Thanks for your help

#1431343

Hi,

Thank you for contacting us and I'd be happy to assist.

Your observation is correct and the Toolset's video type field can only be used for videos directly uploaded by the visitors. And similarly, the Toolset's "Video" block with dynamic source only supports this "Video" type field.

Since you need YouTube links from the users, you can use the "embedded media" type field to get the URL from the users and to show it on the front-end, you can use "Fields and Text" block and insert this field's shortcode, which will automatically render it as a video embed.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#1431937

Hello Waqar, I have followed your indications and it works now. Thank you for your help.