A group for MLA Commons members to ask questions about how the platform works and to get support with any problems on the site. Helpfulness is the currency of this particular realm! (Help image courtesy of the Flickr user Liminal Mike.)

Embedding YouTube Videos

Tagged: , ,

2 replies, 2 voices Last updated by  George H. Williams 6 years, 5 months ago
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #1073

    George H. Williams

    Please allow us to embed videos. Currently neither the <iframe> (See 1 below) or <object> (See 2 below) method of embedding seem to work in the MLA Commons WP blogs:


    <iframe width=”640″ height=”360″ src=”http://www.youtube.com/embed/wQUrVlT4B-c?rel=0″ frameborder=”0″ allowfullscreen></iframe>


    <object width=”640″ height=”360″><param name=”movie” value=”http://www.youtube.com/v/wQUrVlT4B-c?hl=en_US&amp;version=3&amp;rel=0″></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/wQUrVlT4B-c?hl=en_US&amp;version=3&amp;rel=0″ type=”application/x-shockwave-flash” width=”640″ height=”360″ allowscriptaccess=”always” allowfullscreen=”true”></embed></object>


    MLA Commons

    Hi George,

    Because MLA Commons is a multisite WordPress install, there are certain user behaviors that could end up being detrimental to everyone. Unfortunately, <embed>s, <object>s, and <iframe>s fall into this category. This is the case even for the big boys like WordPress.com, which also restricts their use.

    Luckily, there is a workaround. Instead of full embeds, WordPress allows for shortcodes to embed media for many popular media sites. The hands-down easiest way is to simply paste in the URL from a supported media site; WordPress takes care of the rest:

    The above video was embedded by putting the following URL by itself on its own line, e.g.:

    The shortlink version also works, e.g.:

    There are additional shorthand methods to provide parameters to the embed. For more information, visit the shortcodes page linked above.


    George H. Williams

    Very helpful! Thank you, Chris.

Viewing 3 posts - 1 through 3 (of 3 total)

Only members can participate in this group's discussions.