Title: Video Doesn&#8217;t Post
Last modified: April 28, 2025

---

# Video Doesn’t Post

 *  Resolved [toad78](https://wordpress.org/support/users/toad78/)
 * (@toad78)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/video-doesnt-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:**
 *     ```wp-block-code
       <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:**
 *     ```wp-block-code
       <div class="leftvid"></div>
       ```
   
 * **Screenshots: **
   [https://snipboard.io/RjGxcU.jpg](https://snipboard.io/RjGxcU.jpg)
   [https://snipboard.io/7wdlqx.jpg](https://snipboard.io/7wdlqx.jpg)[https://snipboard.io/yzWYF9.jpg](https://snipboard.io/yzWYF9.jpg)
   Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [toad78](https://wordpress.org/support/users/toad78/)
 * (@toad78)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/video-doesnt-post/#post-18442050)
 * I thought of an error in my code and have updated it, but still don’t see the
   video. I’ve tried two additional methods and the video still won’t post.
 *     ```wp-block-code
       <div class="leftvid">						<?php			$video = get_field('hero_video');			if ($video) {			$video_url = $video['url'];			echo '<video width="200" height="300">';			echo '<source src="<?php echo $video_url; ?>" type="video/mp4">';			echo 'Your browser does not support the video tag.';			echo '</video>';			} ?>		</div><div class="leftvid">						<?php			$video = the_field('hero_video', 'option');			if( !empty($video) ): ?>			<video>      			<source src="<?php echo $video['url'];?>" type="video/mp4">      			Your browser does not support the video tag.    		</video>			<!--<p>Your browser does not support the video tag.</p>		-->					<?php endif; ?>		</div>			
       ```
   
    -  This reply was modified 1 year, 1 month ago by [toad78](https://wordpress.org/support/users/toad78/).
 *  Plugin Support [ACF Support](https://wordpress.org/support/users/acfsupport/)
 * (@acfsupport)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/video-doesnt-post/#post-18445335)
 * Hi [@toad78](https://wordpress.org/support/users/toad78/)
 * hero_video field returns a file URL only not an array. So in your code, replace:
 *     ```wp-block-code
       <?php echo $video_url; ?>
       ```
   
 * with just the $video containing the file URL that is:
 *     ```wp-block-code
       <?php echo $video; ?>
       ```
   
 * That should work and if it does not then reach out to support directly and they
   should help out.
   You can open a ticket from here [https://www.advancedcustomfields.com/contact/](https://www.advancedcustomfields.com/contact/)
 * Kind regards,
   Noah.
 *  Thread Starter [toad78](https://wordpress.org/support/users/toad78/)
 * (@toad78)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/video-doesnt-post/#post-18445498)
 * Thank you, [@acfsupport](https://wordpress.org/support/users/acfsupport/). I 
   will try that and see if it fixes it. I was trying a combination of ways to post
   the URL (not noted above) and nothing would post.
 * I’ll come back to you.
 *  Plugin Support [ACF Support](https://wordpress.org/support/users/acfsupport/)
 * (@acfsupport)
 * [1 year ago](https://wordpress.org/support/topic/video-doesnt-post/#post-18472201)
 * Hi there!
 * If you face further challenges, please create a ticket using our ​[support](https://www.advancedcustomfields.com/contact/)
   form and we can look into it further.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Video Doesn’t Post’ is closed to new replies.

 * ![](https://ps.w.org/advanced-custom-fields/assets/icon.svg?rev=3207824)
 * [Advanced Custom Fields (ACF®)](https://wordpress.org/plugins/advanced-custom-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields/reviews/)

## Tags

 * [video](https://wordpress.org/support/topic-tag/video/)

 * 4 replies
 * 2 participants
 * Last reply from: [ACF Support](https://wordpress.org/support/users/acfsupport/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/video-doesnt-post/#post-18472201)
 * Status: resolved