Support

Account

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.