{"id":91220,"date":"2011-10-20T08:00:00","date_gmt":"2011-10-20T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/inline-frame-iframe\/"},"modified":"2011-10-21T04:20:00","modified_gmt":"2011-10-21T04:20:00","slug":"inline-frame-iframe","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/inline-frame-iframe\/","title":{"rendered":"Inline frame \u2013 Iframe"},"content":{"rendered":"<p>WordPress removes iframe when you switch from \u201cHTML\u201d to \u201cVisual\u201d tab because of the security reasons.<br \/>\nInline frames are needed to embed other page in your websserver, video from youtube or to embed Google Map or just to embed content from external page.<\/p>\n<p>Usage (parameters)<br \/>\n* width \u2013 width of the iframe in pixels <code>[embedsite width=\"100%\" src=\"http:\/\/www.karthik.sg\/blog\/\"]<\/code> or <code>[embedsite width=\"640\" src=\"http:\/\/www.karthik.sg\/blog\/\"]<\/code> (by default width=\u201d100%\u201d);<br \/>\n* height \u2013 height of the iframe in pixels <code>[embedsite height=\"480\" src=\"http:\/\/www.karthik.sg\/blog\/\"]<\/code> (by default height=\u201d480\u2033);<br \/>\n* src \u2013 source of the iframe <code>[embedsite src=\"http:\/\/www.karthik.sg\/blog\/\"]<\/code> (by default src=\u201d\u201d);<br \/>\n* frameborder \u2013 frameborder parameter of the iframe <code>[embedsite frameborder=\"0\" src=\"http:\/\/www.karthik.sg\/blog\/\"]<\/code> (by default frameborder=\u201d0\u2033);<br \/>\n* scrolling \u2013 scrolling parameter of the iframe <code>[embedsite scrolling=\"no\" src=\"http:\/\/www.karthik.sg\/blog\/\"]<\/code> (by default scrolling=\u201dno\u201d);<br \/>\n* marginheight \u2013 marginheight parameter of the iframe <code>[embedsite marginheight=\"0\" src=\"http:\/\/www.karthik.sg\/blog\/\"]<\/code> (by default marginheight=\u201d0\u2033);<br \/>\n* marginwidth \u2013 marginwidth parameter of the iframe <code>[embedsite marginwidth=\"0\" src=\"http:\/\/www.karthik.sg\/blog\/\"]<\/code> (by default marginwidth=\u201d0\u2033);<br \/>\n* allowtransparency \u2013 allows to set transparency of the iframe <code>[embedsite allowtransparency=\"true\" src=\"http:\/\/www.karthik.sg\/blog\/\"]<\/code> (by default allowtransparency=\u201dtrue\u201d);<br \/>\n* id \u2013 allows to add the id of the iframe <code>[embedsite id=\"my-id\" src=\"http:\/\/www.karthik.sg\/blog\/\"]<\/code> (by default id=\u201d\u201d);<br \/>\n* class \u2013 allowing to add the class of the iframe <code>[embedsite class=\"my-class\" src=\"http:\/\/www.karthik.sg\/blog\/\"]<\/code> (by default class=\u201diframe-class\u201d);<br \/>\n* same_height_as \u2013 allows to set the height of iframe same as target element <code>[embedsite same_height_as=\"body\" src=\"http:\/\/www.karthik.sg\/blog\/\"]<\/code>,<br \/>\n      [embedsite same_height_as=\u201ddiv.sidebar\u201d], <code>[embedsite same_height_as=\"div#content\"]<\/code>,<br \/>\n      [embedsite same_height_as=\u201dwindow\u201d] \u2013 iframe will have the height of the viewport (visible area),<br \/>\n      [embedsite same_height_as=\u201ddocument\u201d] \u2013 iframe will have the height of the document,<br \/>\n      [embedsite same_height_as=\u201dcontent\u201d] \u2013 auto-height feature, so the height of the iframe will be the same as embedded content<br \/>\n                                          (works only with the same domain) (by default same_height_as=\u201d\u201d);<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Simple Iframe to embed webpages and external web content in wordpress.<br \/>\nSince WordPress removes iframe when you switch from \"HTML\" to \"V \u2026<\/p>\n","protected":false},"author":65,"featured_media":293498,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Inline frame \u2013 Iframe - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Simple Iframe to embed webpages and external web content in wordpress. Since WordPress removes iframe when you switch from \"HTML\" to \"V \u2026"},"footnotes":""},"categories":[1],"tags":[26656,26657,3251,26658,26659],"class_list":["post-91220","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-embed-page","tag-esternal-webpage","tag-iframe","tag-inline-frame","tag-simple-iframes"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/91220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=91220"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/91220\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/293498"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=91220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=91220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=91220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}