Created
August 21, 2013 12:59
-
-
Save psflannery/6294152 to your computer and use it in GitHub Desktop.
A template for displaying video attachments.
Add the video code inside the loop where we’d like to display the content within.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<video class="my-video-class"> | |
<source src="<?php echo wp_get_attachment_url( $post->ID ) ?>" type='video/mp4' /> | |
Your browser does not support the video tag. | |
</video> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment