Video Doesn’t Post
-
Not sure why, but the ACF Field and the code output is sound, but I’m not seeing a video posting on the frontend.
ACF FIELD:
Field Type: File
Label: Hero Video
Field Name: hero_video
Return Value: File URL
Library: All
Code in template:<div class="leftvid">
<?php
$video = get_field('hero_video');
if ($video) {
$video_url = $video['url'];
echo '<video width="200" height="300" playsinline autoplay muted loop disableremoteplayback>';
echo '<source src="<?php echo $link; ?>" type="video/mp4">';
echo 'Your browser does not support the video tag.';
echo '</video>';
} ?>
</div>Output Result:
<div class="leftvid">
</div>Screenshots:
https://snipboard.io/RjGxcU.jpg
https://snipboard.io/7wdlqx.jpg
https://snipboard.io/yzWYF9.jpg
Thank you.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Video Doesn’t Post’ is closed to new replies.