Follow vsgloik on Twitter
oik-plugins
lazy smart shortcodes

Standard WordPress options for displaying videos

If you want to display a YouTube video on your WordPress post or page you can do this very easily. WordPress already provides logic to automatically embed a video into your website. You simply code the URL of the video on a separate line. e.g.

http://www.youtube.com/watch?v=3o2qbrvNzn4

Or use the short link
http://youtu.be/3o2qbrvNzn4

Or you can embed it using the [ embed] shortcode
[ embed]http://youtu.be/3o2qbrvNzn4[ /embed]

Or you can embed it using the iframe tag (YouTube gives you the code to copy and paste)

<iframe src="http://www.youtube.com/embed/3o2qbrvNzn4" frameborder="0" width="420" height="315"></iframe>

BUT, if you wanted to do something a little different then it gets a little trickier.

Note: In these examples the video being used is A Very Smelly Grumbly Oik

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

vsgloik oik-plugins
Work