18. December 2011

WordPress TV

Good news for WordPress fans! WordPress has its own TV. 🙂

Check out WordPress.TV.

Do you want to join some WordPress events around the world? Then check out WordCamp.org Central.

1. January 2011

WordPress – Raw HTML and problem with videos

When you want to embed video from Youtube or Vimeo in WordPress article you just enter URL of video into text.

There is one very useful plugin Raw HTML. This plugins allows you to include HTML content in post.

I was facing strange issue. When I turned on Raw HTML plugin then all embed videos stopped working. I was searching for cause of the problem. It seems that there is problem with priority of filter "wpautop" in Raw HTML code.

Original source from Raw HTML contains following code - raw_html.php - line: 139

add_filter( $tag, 'maybe_'.$func, 3 );

Some WordPress instances simply does not work with this value. I was playing with this priority value. I changed it to 8 and video started working again.

add_filter( $tag, 'maybe_'.$func, 8 );

Default installation of WordPress does not have this problem with Raw HTML plugin.

Now you can enjoy embed videos again.

  • Where is the fish?

  • Translations

  • Further info

  • Twitter

    Follow @jurajmichalek on twitter.

  • Comments

  • Tags

  • Topics