iframe
[iframe src="http://www.youtube.com/embed/7_nAZQt9qu0" width="100%" height="500"] shortcode
Solid choice
iframe is a solid plugin choice in 2026, with a few things worth checking first. It runs on 60K+ sites, is rated 4.4/5 and was last updated 4 months ago, and scores 62/100 on our health check.
- Proven at scale on 60K+ active sites
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where iframe stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| embed | #75 |
| Google Maps | #61 |
| iframe | #1 |
| vimeo | #31 |
| youtube | #77 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 4.4 from 56 reviews
About iframe
From the official readme · v6.0Description
[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=""];
Installation
- install and activate the plugin on the Plugins page
- add shortcode
[iframe src="http://www.youtube.com/embed/7_nAZQt9qu0" width="100%" height="500"]to page or post content
Changelog
6.0
- added settings page
5.2
- minor update
5.1
- removed srcdoc attribute completely
5.0
- fixed the $atts string/array error.
4.9
- sanitized srcdoc attribute more.
4.8
- sanitized srcdoc attribute.
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best iframe alternatives
All embed plugins →FAQ
iframe: quick answers
Straight answers, pulled from live WordPress.org data.
Live data from WordPress.org · checked Sep 27, 2026
Is iframe free?
Yes. iframe is free to download and use from the official WordPress.org plugin directory.
Is iframe safe to use in 2026?
iframe is a solid plugin choice in 2026, with a few things worth checking first. It runs on 60K+ sites, is rated 4.4/5 and was last updated 4 months ago, and scores 62/100 on our health check.
How many websites use iframe?
iframe is active on 60K+ WordPress websites and has been downloaded 1,934,949 times since it launched in April 2011. It was downloaded 4,561 times in the last 30 days.
Does iframe work with WordPress 7.1?
iframe is officially tested up to WordPress 7.0.6, while the latest release is 7.1.2. It may still work, but try it on a staging site first.
When was iframe last updated?
The latest version, 6.0, was released on May 17, 2026 (4 months ago).
Who makes iframe?
iframe is developed and maintained by webvitalii.
What are the best alternatives to iframe?
The most popular alternatives to iframe are EmbedPress (100K+ installs), Advanced iFrame (40K+ installs) and Insert Pages (30K+ installs).
Powered by PageForge
Want thousands of pages that rank like these? Build them in an afternoon.
This directory runs on the same engine as PageForge. Turn any spreadsheet, CSV or API into thousands of fast, SEO-ready WordPress pages — with schema, internal links and AI-written copy baked in.
- CSV, Google Sheets & API data sources
- AI content, schema & internal links per page
- Works with Elementor, Gutenberg, Yoast & Rank Math
- Free on WordPress.org — no credit card
![[iframe] shortcode](https://ps.w.org/iframe/trunk/screenshot-1.png?rev=3534175)