Support » Fixing WordPress » Turning off Post Preview in 2.1

  • Resolved Keilya



    I was wondering if anybody know what lines of post-new.php to delete to get rid of the Post Preview Iframe (when composing new posts)?

    For all the previous versions, I had been following the instructions provided by Podz in this thread:

    However, I don’t think that will work now as I don’t find those lines in there. There are similar ones in post.php but they’re not exactly identical, so I wouldn’t want to delete anything and screw wordpress up accidently.

    Thank you. ^^

Viewing 9 replies - 1 through 9 (of 9 total)
  •…/two-dinky-but-useful-wordpress-plugins references a “Kill Preview” plugin, but I am unable to find out for sure if it’s compatible with 2.1

    This would be much more preferable to editing the post-new.php file, in my very humble opinion! 🙂



    Ahh thanks…but since the coding for post preview has changed in 2.1, (Even the ‘Write’ Menu has changed from post.php >> post-new.php) it’s highly likely that the plugin won’t work properly. :3 I’ll give it a try though…

    Meanwhile, do anybody else know anymore solutions for this? >.<



    Okays…I sorta tried deleting some codes myself and I think I hit the Jackpot.

    In wp-admin/post.php

    Delete these lines:

    <div id=’preview’ class=’wrap’>
    <h2 id=”preview-post”><?php _e(‘Post Preview (updated when post is saved)’); ?></h2>
    <iframe src=”<?php echo attribute_escape(apply_filters(‘preview_post_link’, add_query_arg(‘preview’, ‘true’, get_permalink($post->ID)))); ?>” width=”100%” height=”600″ ></iframe>

    And it works! (:

    Why on earth would you want to remove the preview? How bizarre…




    lots of people dont use it. I dont, for example, and completely removed the code from my admin area a long time ago. I know how to post properly so that I dont have to preview what I’m doing.

    I know you just posted in another thread that you like that feature, but realize that because you do, doesn’t mean others do.

    In my opinion, this ought to have been one of those items that was pluginized in the first place.

    There are numerous more minor plugins that havent been added to the core, much less even considered for addition, that would have added more than that “feature”.

    FYI: it was removed by matt – so, don’t hope it will be back soon 🙂

    I just found the preview button… I take it all back!

    before you continue posting, please, read my reply in your other topic. It has NOT been removed, jus moved.



    Well, in response to aljuk firstly, I don’t need the preview like what whooami said. Secondly, removing it reduces loading time and conserves bandwidth. Although I don’t really need to conserve bandwidth, I just get qutie annoyed when all those few seconds of waiting time to post is due to the preview iframe. >.> And I don’t like the idea how I am leeching on my own bandwidth when I don’t need it. (:

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Turning off Post Preview in 2.1’ is closed to new replies.