oEmbed problems
-
Hi
I have a problem with the oEmbed-field
I’ve got it working only with YouTube-videos is there a way to get other videos working?
Here is an example:
https://trailers.filmstaden.se/asset-a88c3f76-5221-49f3-a374-a65df8e2517a/Bugonia_trailer3_Large.mp4The page I need help with: [log in to see the link]
-
Hi @mikeyswede,
Thanks for writing in, and apologies for the delayed response!
The ACF oEmbed field relies entirely on WordPress’s native oEmbed engine to fetch and display media. This means it will only work out-of-the-box with URLs from WordPress’s official list of whitelisted providers (such as Vimeo, DailyMotion, SoundCloud, etc.).
If you are trying to embed a video from an unsupported source, the field won’t be able to render it automatically. To get other videos working, you will either need to host them on a supported platform or manually register your custom video source in your theme’s
functions.phpfile using the standard WordPresswp_oembed_add_provider()function.If that doesn’t solve it, we’d love to continue investigating and troubleshooting this with you. This forum is generally used by ACF users to help each other out, so please create a ticket using our support form and our team can look into it further.
Kind regards,
PatThanks for the
wp_oembed_add_provider()function-tip
It worked
Used the code
wp_oembed_add_provider( ‘https://.url/‘, ‘http://url/api/oembed.{format}’, false );
You must be logged in to reply to this topic.