Entries RSS..or..Comments RSS

Joe’s Freeware Finds

Freeware and Shareware Found on the Internet

Post Preview Fix for WP v2.2 and v2.2.1

New Here? You may want to subscribe to my RSS feed. Or if you prefer, Subscribe by Email. Thanks for visiting!

I don’t know about you, but I missed my inline Post Preview, and thought the extra step of clicking preview>> and having it open in another window was totally ridiculous. Not to mention unnecessary.

You need to be comfortable working in the background code of your post.php, but it is fairly simple to do. Go to the wp-admin folder on your server, find your post.php and copy & paste the code below.

Here’s the steps you will need to know…

  • Open up your post.php file from your wp-admin directory.
  • Navigate to approximately line 63 and find the following line of code:include('edit-form-advanced.php');
  •  Directly underneath that line, add the following code:?>
    <div id='preview‘ class=’wrap’>
    <h2 id=”preview-post“><?php _e(’Post Preview (updated when post is saved)’); ?></h2>
    <iframe src=”<?php echo clean_url(apply_filters(’preview_post_link’, add_query_arg(’preview‘, ‘true’, get_permalink($post->ID)))); ?>” width=”100%” height=”600″ ></iframe>
    </div>
    <?php
  • Save your changes to post.php.

There, Done… Simple, huh?

Recovered from Google Cache from 2007/08/01 I left the highhights so you could see the terms I used to find the Cache file.

June 3rd, 2008 Posted by Joe | Back-up, WordPress | no comments

No Comments »

No comments yet.

Leave a comment

You must be logged in to post a comment.