SOLVED – YouTube or Other Videos Not Embedding in WordPress MU Posts

If you are a WordPress MU administrator and getting complaint that your users are not able to upload or embed YouTube videos or any other video in posts then here is the solution to do that. In WordPress MU, when you will try to embed the code of YouTube video, it will disappear after hitting the ‘Publish’ button. To embed YouTube video or any other video, you will have to make some code changes in WordPress MU file.

In WordPress MU setup, under ‘wp-include’ folder, you can find ‘kses.php’ file. You will have to edit that file to enable YouTube or Other videos embed feature in WordPress MU posts. Open ‘kses.php’ file on editor and make the below changes into that file. First of all try to find the code (in black color) on kses.php file. These changes will enable your WordPress MU editor to embed videos like YouTube and Vimeo.

After the below piece of code;

 'ol' => array (
    'class' => array (),
    'start' => array (),
    'style' => array (),
    'type' => array ()),

Add the below mentioned code,

    'embed' => array (
    'style' => array (),
    'type' => array (),
    'id' => array (),
    'height' => array (),
    'width' => array (),
    'src' => array ()),
'object' => array (
    'height' => array (),
    'width' => array ()),
    'param' => array (
    'name' => array (),
    'value' => array ()),
    'object' => array(
    'width' => array (),
    'height' => array (),
    'movie' => array (),
    'allowFullScreen' => array (),
    'embed src' => array(),
    'application/x-shockwave-flash' => array()),

Save the ‘kses.php’ file and upload it to your server. Now you can embed a video (for example YouTube) code and publish the post. Now your post will show the newly embedded video in proper way. You may add other type of media tags to add them in your posts on MU.

Related: Enable Theme and Plugin Editor on WordPress MU

Sanjeev Mishra is a professional blogger and an Internet Marketing Consultant based in India. He has built the Internet Techies to provide you updates in technology and web application area.

Leave a Reply

Your email address will not be published. Required fields are marked *