erin n pierce // creativity from the ground up


WordPress MU and the mysterious disappearing code

As I was in the middle of developing a WordPress MU site for a client of mine, I ran into a very peculiar problem. After importing their blog posts from their old site, I realized there were a few blog posts with embedded Youtube videos that no longer showed the videos. I checked and check again but could not figure out what happened to the embed code. I then decided it was a fluke, found the videos on Youtube again and copy / pasted. When I pushed “Update” the code disappeared. Totally baffled, I thought maybe I did not install WPMU properly. On my initial install I ran into another strange problem with the WYSIWYG visual editor and a reinstall fixed that. So, I spent another 30 minutes reinstalling WPMU.

No luck.

Now frustrated, I started Googling. I came across several forum posts, one of which lead me to a solution. Several people commented on this Embed code disappears (for some users) in Wordpress 2.7 string, having the same, or very similar issue as me. After reading that and several other confirming posts, I found out that WPMU does not allow any additional tags such as <embed>, <iframe>, <form>, etc. WPMU automatically strips posts of these and rightfully so. When you have a large site with multiple users there can be added security issues, especially if a site will allow anyone to sign up. WPMU strips the code as a security measure.

Okay, now for the solution. Because my client will only have very trustworthy administrators, I am utilizing the Unfiltered MU plugin to allow the additional code.

Hopefully I just saved some people a few hours by posting this! Good luck.

Bookmark and Share

7 Responses to “WordPress MU and the mysterious disappearing code”

  1. Thank you so much! Just when I think I’m over my head, I find a clear and helpful post to overcome the next hurdle.

  2. Marc Shaw says:

    Hey, I read a lot of blogs on a daily basis and for the most part, people lack substance but, I just wanted to make a quick comment to say GREAT blog!…..I”ll be checking in on a regularly now….Keep up the good work! :)

    - Marc Shaw

  3. William Haun says:

    You saved me a ton of time & frustration. Thanks so much!

    • Erin Pierce says:

      Hey no problem! It is great to know my words are far reaching :-)

      Looks like we do similar work (WP, AS / Flash, teaching, etc). Are you on Twitter or LinkedIn?

  4. Dietrich says:

    Dude, YOU ROCK!!! You saved me hours! Besides the 2 I already spent! Thank you so much!

  5. Niarcas says:

    Thank you very much. You saved me hours of headache.

Leave a Reply

name*

email* (will not be published)

website

comments