Created
January 22, 2013 11:21
-
-
Save tomjn/4593910 to your computer and use it in GitHub Desktop.
Displaying html5 audio controls in WordPress
This file contains 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
<audio controls> | |
<source src="<?php echo wp_get_attachment_url(); ?>" type="<?php echo get_post_mime_type(); ?>"> | |
Your browser does not support the audio tag. | |
</audio> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment