Home › Forums › General Issues › Wistia not working with ACF oEmbed
Hey all – I’m using the oembed field to show videos, and it does not seem to be working as expected for wistia. Here are some notes:
– youtube videos are working as expected
– I can see in the console that an iFrame is being pulled from the oembed URL provided by wistia. But it’s not displaying anything
– if i drop the provided oembed code from wistia into a normal visual editor field it works fine.
Anyone else having a problem?
Hi @jrstaatsiii
Could you please share a video URL from Wistia so I can test it out?
Keep in mind that WordPress oEmbeds feature doesn’t support all URLs. This page should give you more idea about it: https://codex.wordpress.org/Embeds#How_Can_I_Add_or_Change_Support_For_Websites.3F.
You can also use wp_oembed_get() to get the video manually.
I hope this helps.
Hi @jrstaatsiii
I’m afraid I can’t show the video in my installation because of some sandbox flag errors.
Maybe you can try to use the wp_oembed_get() function like this:
<?php $embed_code = wp_oembed_get( 'https://thedropp.wistia.com/medias/p5egqo189g' ); echo $embed_code; ?>
If it’s working on your end, then you can add the video URL using a URL field type and then use that code to show the video.
I hope this helps.
Hey James – Sorry for the delayed response. Does this mean that the current oEmbed field in ACF has a bug? I’d prefer to use that feature, since it shows the preview from the admin. -Rich
Hi @jrstaatsiii
Have you tried that code in your site? How was the result?
I believe it’s not a bug, but more like an unsupported feature. If you want Wistia URL to be supported, you can open a new ticket here: http://support.advancedcustomfields.com/new-ticket.
Thanks!
The topic ‘Wistia not working with ACF oEmbed’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.