WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to embed the admin "new post" WordPress page into an iframe:

<iframe height="500px" frameborder="0" width="740px" src="my_wordpress_domain/wp-admin/post-new.php"/>

For some reason the iframe loads a blank page. The link itself works in a separate tab and so does the wordpress home page.

Is this a security issue, if so, how can I circumvent it?

share|improve this question

By default WordPress doesn’t allow to embed the admin pages into a frame. From wp-includes/default-filters.php:

add_action( 'admin_init', 'send_frame_options_header', 10, 0 );

To enable embedding, remove the action in a plugin:

remove_action( 'admin_init', 'send_frame_options_header' );

Be aware of the security implications. I wouldn’t do that.

share|improve this answer

There's no straight forward way around this if you are using wordpress.com hosted page. If you have independent hosting, make sure you enter this in the html page, or consider one of the iframe plugins. I use iframe embedder.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.