Skip Navigation

[Resolved] Videos from wysiwyg in post type not showing on published post in WordPress

This support ticket is created 3 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 8 replies, has 2 voices.

Last updated by melodyP-2 3 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#2045087

I am trying to: See a video added to the WYSIWYG

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

I expected to see: The video embed hidden link

Instead, I got: Blank

#2045225

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Melody,

Thank you for getting touch.

Can you send me the exact code that you added into the WYSIWYG field so that I can perform a test on my end ?

Thanks,
Shane

#2046123

Shane,

The client used the ADD MEDIA button in the WYSIWYG and INSERT FROM URL. THAT SHOULD have worked. I tested it in a native POST, which WORKS. The other way is to use the EMBED code copied from YouTube. This isn't rocket science. If this works when it is added to a regular POST, then it should work with the WYSIWYG custom field in Toolset. Seriously, there are 2 ways to put a video in a WYSIWYG. BOTH work in a native POST, they DON'T work with a Toolset WYSIWYG. Just that simple.

#2046125

You can go to YouTube and get the code just like me.

<iframe width="560" height="315" src="hidden link" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

#2046371

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Melody,

Are you using Elementor's dynamic field option to display the custom field ? If so Elementor will strip away the iframe from the field output.

You're going to need to add the field's output directly to the page using our Shortcode and the elementor shortcode widget. The correct shortcode that you will need to use it.
[types field='my-field'][/types]

Replace my-field with the slug of your custom field.

Please let me know if this helps.
Thanks,
Shane

#2046579
media-video-embed.jpg

Shane,

Are you saying that the client has to type in [types field='my-field'][/types] every time? How do you expect a client to add video to their posts in a custom template?

#2046641

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Melody,

No i'm not saying that. Is your template created using elementor ?

If it is created using elementor and you're using the elementor dynamic field option to display the WYSIWYG field then the iframe will get stripped out by elementor.

You will instead need to call the WYSIWYG field with our shortcode in the template. The user won't need to change how they are entering the information. We just need to change the method that is being used to display.

If you're not sure how to do this then you can provide me with admin access to the site and I can help with this. Please also send a link to the page that has the WYSIWYG field.

Thanks,
Shane

#2046643

Shane,

This thread seems to think it can be done, no?

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

Honestly, why would Toolset strip out a feature like that? For a dev, this is your solution, but this client is managing their own website and they want to add YouTube videos. You're saying a client can't use a common feature of WordPress?

#2046683

My issue is resolved now. Thank you!