Embedding YouTube videos in WordPress MU
June 16, 2009 by daynah
Filed under Scripts and Coding, Wordpress
After working with WordPress Mu, I found that I was unable to embed YouTube videos into a post. Instead, WordPress MU would strip my content out without any warning. After surfing around, I found the solution here:
Fix for including YouTube videos in posts in WordPress MU
To make the fix, open wp-includes/kses.php.
Look for:
if (!CUSTOM_TAGS) {
$allowedposttags = array (
and Add:
'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 ()),
to allow embedding of videos.
You can do the same for other HTML codes like
Related Products:
Professional WordPress (Wrox Programmer to Programmer)An in-depth look at the internals of the WordPress system. As the most popular blogging and content management platform available today, WordPress is ... Read More >
WordPress Web Design For Dummies (For Dummies (Computer/Tech))Learn how WordPress can help you create a unique, customized Web siteOnce only a platform for bloggers, WordPress is gaining popularity as a tool f... Read More >
WordPress Power Guide - Using WordPress to Blog Your Way to Success - Blogging GuideAttention: New Book Intro Price -The Price of this Book will Increase to $9.97 Soon!WordPress Power Guide
Go Beyond The Basics... Read More >
Popularity: 6% [?]


@







