Skip to content

Instantly share code, notes, and snippets.

@tomjn
Created January 22, 2013 11:21
Show Gist options
  • Save tomjn/4593910 to your computer and use it in GitHub Desktop.
Save tomjn/4593910 to your computer and use it in GitHub Desktop.
Displaying html5 audio controls in WordPress
<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