Skip Navigation

[Resolved] mp4 video does not play when embedded in WYSIWYG field

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

Problem:

I have embedded an mp4 video in both the default WP body field and in a Custom WYSIWYG Field. It plays fine in the post body, but not in the Toolset field.

Solution:

So there should be some compatibility issue in your website, please check these:

https://toolset.com/forums/topic/mp4-video-does-not-play-when-embedded-in-wysiwyg-field/#post-1957559

Relevant Documentation:

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

This support ticket is created 3 years, 9 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 4 replies, has 2 voices.

Last updated by kristofG 3 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1956265

I have embedded an mp4 video in both the default WP body field and in a Custom WYSIWYG Field. It plays fine in the post body, but not in the Toolset field.
[video width="1280" height="720" mp4="hidden link" loop="true" autoplay="true" preload="none"][/video]
hidden link

#1957559

Hello,

I have tried it in my localhost with a fresh WP installation + the latest version of Toolset plugins, it works fine.

So there should be some compatibility issue in your website, please check these:
1) Add suppress_filters='true' attribute into the custom WYSIWYG Field shortcode, for example:
[types field='test-wy' suppress_filters='true'][/types]
https://toolset.com/documentation/customizing-sites-using-php/functions/#wysiwyg
If suppress_filters=’true’, all third party (non WordPress) filters hooked into the_content filter will be removed

2) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

3) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2021, deactivate all custom PHP/JS code snippets, and test again

#1962325

Hi, the suppress filters worked. What could this mean? That the issue is Theme related?

#1962375

As I mentioned above there should be some compatibility issue in your website, that means there are some other plugins/theme is using the_content filter hook to change the WYSIWYG Field result, you can locate it by these:
In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2021, deactivate all custom PHP/JS code snippets, and test again

If the problem is fixed, then activate other plugins/theme one by one, try to locate the problem plugin/theme.

#1963695

My issue is resolved now. Thank you!