WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by webvitalii v6.0

iframe

[iframe src="http://www.youtube.com/embed/7_nAZQt9qu0" width="100%" height="500"] shortcode

iframe

The facts

Rating
4.4★ from 56
Active installs
60k+
Price
Free
Last updated
17 May 2026
Added
Apr 2011
Requires WP
3.0
Tested up to
WP 7.0.4
Downloads
1,930,589

Our analysis

AI-assisted

The iframe plugin for WordPress allows you to embed content from external sources like YouTube, Vimeo, and Google Maps using a shortcode. It replaces the standard iframe HTML tag, which WordPress removes for security reasons. You can specify various parameters such as width, height, scrolling, and more to customise the embedded content's appearance.

This plugin is suitable for users who want to easily embed multimedia content into their WordPress sites without dealing with HTML directly. It is particularly useful for those who need to integrate various media types while ensuring compatibility with HTTPS protocols.

Best for: This plugin suits WordPress users looking to embed multimedia content easily.

What it does well

  • Enables embedding of content from multiple external sources
  • Customisable parameters for width, height, and appearance
  • Free to use from the WordPress.org directory
  • Active installation base of 60,000

Where it falls short

  • Limited information on specific features or capabilities
  • Cannot embed HTTP pages into HTTPS pages and vice versa

Verdict

The iframe plugin provides a straightforward solution for embedding external content, making it a practical choice for many WordPress users.

From the developer

webvitalii's own description of iframe, lightly tidied.

[iframe src=”http://www.youtube.com/embed/7_nAZQt9qu0″ width=”100%” height=”500″] shortcode
should show something like this:

WordPress removes iframe html tags because of security reasons.
Iframe shortcode is the replacement of the iframe html tag and accepts the same params as iframe html tag does.
You may use iframe shortcode to embed content from YouTube, Vimeo, Google Maps or from any external page.

If you need to embed content from YouTube, Vimeo, SlideShare, SoundCloud, Twitter via direct link, you may use [embed]http://www.youtube.com/watch?v=7_nAZQt9qu0[/embed] shortcode.
[embed] shortcode is a core WordPress feature and can embed content from many resources via direct link.

Important: You can not embed HTTP pages into HTTPS pages and vice versa.
So the protocol (http or httpS) for parent and embedded page should match.

iframe params:

  • src – source of the iframe: [iframe src="http://www.youtube.com/embed/7_nAZQt9qu0"]; by default src=”http://www.youtube.com/embed/7_nAZQt9qu0″;
  • width – width in pixels or in percents: [iframe width="100%"] or [iframe width="600"]; by default width=”100%”;
  • height – height in pixels: [iframe height="500"]; by default height=”500″;
  • scrolling – with or without the scrollbar: [iframe scrolling="no"]; by default scrolling=”yes”;
  • frameborder – with or without the frame border: [iframe frameborder="0"]; by default frameborder=”0″;
  • marginheight – height of the margin: [iframe marginheight="0"]; removed by default;
  • marginwidth – width of the margin: [iframe marginwidth="0"]; removed by default;
  • allowtransparency – allows to set transparency of the iframe: [iframe allowtransparency="true"]; removed by default;
  • id – allows to add the id of the iframe: [iframe id="custom_id"]; removed by default;
  • class – allows to add the class of the iframe: [iframe class="custom_class"]; by default class=”iframe-class”;
  • style – allows to add the css styles of the iframe: [iframe style="margin-left:-30px;"]; removed by default;
  • same_height_as – allows to set the height of iframe same as target element: [iframe same_height_as="div.sidebar"], [iframe same_height_as="div#content"], [iframe same_height_as="body"], [iframe same_height_as="html"]; removed by default;
  • any_other_param – allows to add new parameter of the iframe [iframe any_other_param="any_value"];
  • any_other_empty_param – allows to add new empty parameter of the iframe (like “allowfullscreen” on youtube) [iframe any_other_empty_param=""];

Read the full description on the official page →

Tagged as