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.htmThe 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.