The WordPress Embed, Video and Audio shortcodes

 Did you know wordpress offers easy shortcodes to embed videos, music and images, not only trough external websites, but also self hosted music and video files.

For MP3 Files, you can use the Audio ShortCode, you can also include other formats such as ogg to ensure device and OS compatibility.

[audio src=”path-to-song-file”]

For MP4 Video Files, you can use the Video ShortCode, the file can be hosted on FTP / Amazon S3 / Dropbox, in short, any link that ends with an .mp4

[video width=”560″ height=”315″ mp4=”link-to-mp4″ autoplay=“no”]

You can take a youtube link and display it without using the HTML code directly by using the follow shortcode.
But it doesn’t work only with youtube, it works also with vimeo and a dozen more services, I think this is one of the best features out there that people aren’t using.

[embed width=”640″ height=”360″]link-goes-here[/embed]

DailyMotion

Imgur

Dog trying to catch all the rain


Instagram

 
Kickstarter

SoundCloud 

Vimeo

YouTube

You can find the full list of available services on The WordPress Embed Codex