Problem:
The user has created an embed field and it was not working for one post. The user was getting the URL instead of a video player.
Solution:
First, the URL should be working, which is not the case, if we follow the link in /course/introduction-to-html5/ it returns an HTTP error, check this screenshot http://prntscr.com/ulq1zz
Then, we need to have the domain from where the video is loaded to be whitelisted in WordPress. Check the list of whitelisted domains by default here https://wordpress.org/support/article/embeds/#okay-so-what-sites-can-i-embed-from
And we can whitelist the domain with wp_oembed_add_provider(). Check this section https://wordpress.org/support/article/embeds/#adding-support-for-an-oembed-enabled-site
If the domain cannot return formatted HTML, we can register a callback handler with wp_embed_register_handler() . Check this section https://wordpress.org/support/article/embeds/#removing-support-for-an-oembed-enabled-site
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: Africa/Casablanca (GMT+01:00)
This topic contains 4 replies, has 2 voices.
Last updated by 4 years, 1 month ago.
Assisted by: Jamal.