Select Pure Freeware
» Home / Troubleshooter / Embed YouTube Videos in WordPress MU

Embed YouTube Videos in WordPress MU

October 2008   »

The easy way (you need to repeat when you update to a newer version of WPMU) is to edit the file wp-includes/kses. php

Search for the line

add_filter('content_save_pre', 'wp_filter_post_kses');

and comment it out by placing two slashes in the beginning:

// add_filter('content_save_pre', 'wp_filter_post_kses');

That is all! Go embed your videos without problems – Or, you can follow a different, and more secure, way, by allowing just the video specific tags. Again in the file wp-includes/kses. php add the following tags in the allowed tags section:

'object' => array (
   'id' => array (),
   'classid' => array (),
   'data' => array (),
   'type' => array (),
   'width' => array (),
   'height' => array (),
   'allowfullscreen' => array ()),
'param' => array (
   'name' => array (),
   'value' => array ()),
'embed' => array (
   'id' => array (),
   'style' => array (),
   'src' => array (),
   'type' => array (),
   'height' => array (),
   'width' => array (),
   'quality' => array (),
   'name' => array (),
   'flashvars' => array (),
   'allowscriptaccess' => array (),
   'allowfullscreen' => array ()),

Or download the “Allow Embeded Videos” plugin for Wordpress MU and put it in the mu-plugins folder.


» Grab the Link:

Share this post:
  • Facebook
  • Twitter
  • MySpace
  • Slashdot
  • StumbleUpon
  • Digg
Tags: embed youtube videos, mu, WordPress MU, wp

Cf.



at Fine Shareware -- or at Google!


4 Responses to “Embed YouTube Videos in WordPress MU

  • Jody - October 12th, 2009 22:32
    1

    Thanks heaps, after looking at many options this way by far the best solution :-)

    Thanks

  • Anon - December 29th, 2009 05:51
    2

    Thanks! Wordpress doesn’t even write about this restriction anywhere! You saved my day

  • Syl - April 15th, 2010 15:25
    3

    Thanks for the plug in. It works fine. But, if i go to certain computers, the video wont show, it displays as a comment box. However, certain computers play the video. Is it a software issue?

  • TheFreeWindows - April 17th, 2010 04:53
    4

    Most probably it is a security configuration issue in those computers. Try the manual solution, without the plugin.



Leave a Comment here

Please note: this is a Freeware site - Do not use it to promote other programs: publication can be denied for any reason at the absolute discretion of the moderator.

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image