Where’s my iframe?
You may have run into a common problem in WordPress, disappearing iframes. Why does this happen? The visual editor in WordPress (TinyMCE) strips out iframes. So if you embed an iframe in HTML view in WordPress and then flip over to the ‘Visual’ view your iframe is going to be removed. This can be extremely annoying.. say you’re embedding a Google map an the editor decides to remove the code.. bye bye map!
My solution to this problem is a pretty simple process. First, install the shortcode generator. Then:
Create a new shortcode.
Paste in your Google Maps iframe
Paste the shortcode into your WordPress post or page.
The editor in WordPress won’t strip out the shortcode text, so with this method your iframe is safe. Also, it helps clean-up the amount of text in your WordPress editor.