We'll create fresh WordPress site with iframe installed. You have 20 minutes to test the plugin after that site we'll be deleted.
[iframe src=”http://www.youtube.com/embed/dUpTjDqjQoo” 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=dUpTjDqjQoo[/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 src="http://www.youtube.com/embed/dUpTjDqjQoo"]
; by default src=”http://www.youtube.com/embed/dUpTjDqjQoo”;[iframe width="100%"]
or [iframe width="600"]
; by default width=”100%”;[iframe height="500"]
; by default height=”500″;[iframe scrolling="no"]
; by default scrolling=”yes”;[iframe frameborder="0"]
; by default frameborder=”0″;[iframe marginheight="0"]
; removed by default;[iframe marginwidth="0"]
; removed by default;[iframe allowtransparency="true"]
; removed by default;[iframe id="custom_id"]
; removed by default;[iframe class="custom_class"]
; by default class=”iframe-class”;[iframe style="margin-left:-30px;"]
; removed by default;[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;[iframe any_other_param="any_value"]
;[iframe any_other_empty_param=""]
;