mattlingard tumblr
Allow iframe in WordPress Blog posts

This is for self-hosted blogs NOT wordpress.com

  1. There are plenty of plugins, for example Embed iframe
  2. I don’t know if it works for all themes, but my colleague did a code edit which worked on our wp site (our theme is based on Twenty Ten theme)

Add the following lines to “functions.php” in your theme:

// Allow IFRAME, so you can use some embed code supplied by, e.g. Google $allowedposttags[“iframe”] = array(

        “src” => array(),

        “height” => array(),

        “width” => array()

);

  1. divineteam reblogged this from mattlingard
  2. mattlingard posted this