iframe not showing in post (with “allow php in posts” plugin activated)
I would say that’s a quirk with the plugin. In this case, it’s better to make a shortcode. Add this code to your functions.php file: function wpse_77036_embed_video( $atts ) { extract( shortcode_atts( array( ‘homepage’ => “https://wordpress.stackexchange.com/”, ‘currentpage’ => $_SERVER[‘REQUEST_URI’], ‘width’ => 560, ‘height’ => 315, ‘code’ => ‘I8M_uCnxhwY’, ), $atts ) ); if ( $homepage … Read more