Title: iFrame not posting WP-Admin content
Last modified: June 29, 2020

---

# iFrame not posting WP-Admin content

 *  [andrewfrancon](https://wordpress.org/support/users/andrewfrancon/)
 * (@andrewfrancon)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/iframe-not-posting-wp-admin-content/)
 * Hi. I’ve been using your iFrame plugin for so long! It’s great. But I notice 
   content is no longer being displayed.
 * On the URL I added above, I use the code:
 *  [iframe width=”100%” height=”500″ src=”../wp-admin/Networks/qgis2web_2019_03_12-
   13_12_12_990000/index.html”]
 * …to display a map.
 * Maybe this has happened since I added a SSL certificate I’m not sure. However
   in the WP-Config file I added the lines:
 * define(‘WP_HOME’, ‘[https://www.geomaptric.co.uk&#8217](https://www.geomaptric.co.uk&#8217););
   
   define(‘WP_SITEURL’, ‘[https://www.geomaptric.co.uk&#8217](https://www.geomaptric.co.uk&#8217););
 * I find lots of advice about iFraming external sites, but nothing about iFraming
   WP-Admin based content.
 * Can you help?
 * Thanks in Advance.
 * Peter
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fiframe-not-posting-wp-admin-content%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [webvitaly](https://wordpress.org/support/users/webvitaly/)
 * (@webvitaly)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/iframe-not-posting-wp-admin-content/#post-13050678)
 * Hi Peter.
    I think I know why relative URL’s does not work anymore. In the latest
   change I added sanitizing for the URL because of security reasons to avoid malicious
   code in the URL. [https://plugins.trac.wordpress.org/browser/iframe/trunk/iframe.php#L37](https://plugins.trac.wordpress.org/browser/iframe/trunk/iframe.php#L37)
 * And I think now it adds “http/https” prefix to every URL which breaks your relative
   URL which starts with “../”.
    [https://developer.wordpress.org/reference/functions/esc_url/](https://developer.wordpress.org/reference/functions/esc_url/)
 * You can replace the URL with full path like “[https://www.geomaptric.co.uk/…&#8221](https://www.geomaptric.co.uk/…&#8221);.
   
   Or you can remove lines 37-39 if you still need the relative URL to work in your
   copy of the plugin. It should not have any danger for you if you are the only
   person to update the content of the website. And I also recommend to change/bump
   plugin’s version to “100” or similar to avoid future updates which can override
   your change. You will lose future plugin’s updates and I am not planning to add
   new big features for now anyway.
 * Please let me know if you have additional questions.
 *  Thread Starter [andrewfrancon](https://wordpress.org/support/users/andrewfrancon/)
 * (@andrewfrancon)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/iframe-not-posting-wp-admin-content/#post-13071590)
 * Hi Webvitalii
 * Many thanks for your prompt answer. I want to follow your advice to install Version
   100, but where to find it?
 * Peter
 *  Plugin Author [webvitaly](https://wordpress.org/support/users/webvitaly/)
 * (@webvitaly)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/iframe-not-posting-wp-admin-content/#post-13072055)
 * To do that you need to update the plugin’s version manually – [https://plugins.trac.wordpress.org/browser/iframe/trunk/iframe.php#L6](https://plugins.trac.wordpress.org/browser/iframe/trunk/iframe.php#L6)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘iFrame not posting WP-Admin content’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/iframe_99a44b.svg)
 * [iframe](https://wordpress.org/plugins/iframe/)
 * [Support Threads](https://wordpress.org/support/plugin/iframe/)
 * [Active Topics](https://wordpress.org/support/plugin/iframe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/iframe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/iframe/reviews/)

## Tags

 * [iframe](https://wordpress.org/support/topic-tag/iframe/)

 * 3 replies
 * 2 participants
 * Last reply from: [webvitaly](https://wordpress.org/support/users/webvitaly/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/iframe-not-posting-wp-admin-content/#post-13072055)
 * Status: not resolved