Facebook Twitter LinkedIn GooglePlus YouTube

Here is a simple video embedded into this WordPress page from You Tube.

The new – really easy way – WordPress 2.9 and above

You just type the plain text url, as below

http://www.youtube.com/watch?v=y2e745SZZlA
and you get this…

If you want the video in a widget

Then see http://www.studiopress.com/wordpress-tips/auto-embed-video-in-a-wordpress-text-widget.htm

The old way – pre-WordPress 2.9

[aembed:"http://www.youtube.com/v/y2e745SZZlA&color1=0xb1b1b1&color2=0xd0d0d0&hl=en_GB&feature=player_embedded&fs=1" 400 340]

The “code” needed to do this was


[ aembed:
"http://www.youtube.com/v/y2e745SZZlA
&color1=0xb1b1b1
&color2=0xd0d0d0
&hl=en_GB
&feature=player_embedded
&fs=1"
400
340 ]

The first part inside the square brackets says “use the autoembed plugin”

The url is the link to the video on You Tube and included parameters to set the colours and language

400 is the width in pixels

350 is the height

You’re not limited to only including one of these per page… and you can put links into posts as well.

One Response to Video

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>