Home › Forums › General Issues › Render Video from a wordpress shortcode › Reply To: Render Video from a wordpress shortcode
Finally made it work with this one!
<?php
$link_data = get_field('video_featured');
if(!empty($link_data))
{
$link = $link_data['url'];
?>
<video width="200" height="300" playsinline autoplay muted loop disableremoteplayback>
<source src="<?php echo $link; ?>" type="video/mp4">
Your browser does not support the video tag.
</video>
<?php } ?>
Now trying to set the poster via ACF image field. I will keep updating this thread in case someone needs it.
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.