Home › Forums › General Issues › Youtube Oembed field not working › Reply To: Youtube Oembed field not working
I think I’m experiencing the same issue.
When using
<div class="video-embed-container">
<?php the_field('featured_video'); ?>
</div>
In a template only the the div gets output, but when editing the post in the admin area, the preview appears as per normal.
Is there an alternative way to embed videos (other than manually pasting the supplied IFRAME)?
Edit: If I paste the youtube link into the regular content editor it works normally. The preview appears in the editor and also normally when viewed on the website.
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.