How To AutoPlay a YouTube Video In WordPress

One reader @todaysmiracles asked me if I would do a video about how to autoplay a video–here it is.

Get the Flash Player to see this content.

Step 1. Grab your youtube embed code
Step 2. Paste the code to a notepad
Step 3. Use this &autoplay=1
Step 4. After the Youtube “string” see below in blue–paste the above code–in two places–see example below in blue.
Step 4. Open up your blog post in the html editor tab
Step 5. Paste your new embed code

Before Code

<object width=”425″ height=”344″><param name=”movie” value=”http://www.youtube.com/v/qnF-l6kgQvg&hl=en_US&fs=1&color1=0x006699&color2=0x54abd6“></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/qnF-l6kgQvg&hl=en_US&fs=1&color1=0x006699&color2=0x54abd6” type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″></embed></object>

After Code

<object width=”425″ height=”344″><param name=”movie” value=”http://www.youtube.com/v/qnF-l6kgQvg&hl=en_US&fs=1&color1=0x006699&color2=0x54abd6&autoplay=1“></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/qnF-l6kgQvg&hl=en_US&fs=1&color1=0x006699&color2=0x54abd6&autoplay=1” type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″></embed></object>

holly-powell

5 Comments

  1. Karen Hayes on February 18, 2010 at 2:48 am

    Youtube is my favortie site to visit aside from facebook. most of the time i watched movie trailers and music videos on it.



  2. steve on November 17, 2010 at 10:21 am

    Holly I literally scoured the net looking to learn how to do this for a client. I knew it could be done but after hours of reading garbage found your blog and eureka. Thanks so much. I got so many “internet gurus” asking the same question on a forum I belong to, Im going to send them here. Nice job!!!



  3. hollypowell on November 27, 2010 at 1:53 pm

    Steve,

    I’m glad I could help. I appreciate the comments.



  4. HD Vidoeos on May 20, 2011 at 6:43 pm

    Thanks it solved all my problems.
    But dont forget to add &hd=1 to embed URL for HD quality



  5. Dave on July 18, 2011 at 2:10 pm

    I wish I’d found this days ago! So helpful, and I can’t believe how easy it turned out to be. Thanks so much!



Leave a Comment