Subscribe to my RSS Feed ... Or if you prefer, Subscribe by e-mail ... What is RSS?

Fix for WordPress Post Preview

wplogo.jpg 

Some of you may remember my little rant on Saturday about the shortcomings of WordPress 2.2. I was complaining a bit about some of the changes they made with Spacing, Widgets and most of all Post Preview.

I missed my inline Post Preview, and thought the extra step of clicking preview>> and having it open in another window was totally ridiculous. However, Randa Clay mentioned in comments that Will Lee had a fix on his blog, Internet Marketing Fool.

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.

Here’s the steps Will suggests…

  • 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.

It really does work, and now I am a little bit happier using WP 2.2. And I would like to thank Will Lee for sharing this code with us to overcome another inconvenience caused by “upgrading” WordPress.

Update: If you Upgrade to WordPress 2.2.1 you will have to perform the same procedure in order to get your Post Preview. It Does Work on the new version as well.

[tags]WordPress,Post Preview Fix[/tags]


Related Posts:
  • Why Does WordPress Always Break Things That Work When Updating?
  • Review of WordPress 2.2, the Bad Things
  • WordPress vs Blogger (preliminary review)
  • This entry was posted in Tips, WordPress. Bookmark the permalink. Both comments and trackbacks are currently closed.

    8 Trackbacks

    1. By { Tiekenei.blog } » Blog Archive » Om van te huilen on August 28, 2007 at 7:20 pm

      [...] Update 3: Hmm, dat van die post preview is blijkbaar gewoon eigen aan 2.2.1, geen inline preview meer. Bummer. Zal dat dan ook wel eens fixen. [...]

    2. By links for 2007-08-31 : 7 seconden on August 30, 2007 at 7:49 pm

      [...] Working at Home on the Internet | Fix for WordPress Post Preview (tags: wordpress fix inline preview) Tags: none [...]

    3. By How To Bring Back WordPress Post Preview » InsideGoogle » part of the Blog News Channel on September 6, 2007 at 6:18 pm

      [...] Go to edit an old post and it should already be available. If it doesn’t seem to have worked, go to the source of this tip for [...]

    4. By I missed ‘em previews : ashotiwoth.info on October 9, 2007 at 9:45 am

      [...] How to bring back your WordPress post preview [...]

    5. [...] Joe Fix for WordPress Post Preview [...]

    6. By The Relationship Blogger: not a one-link stand » TravelBlog Archive » Family Travel on October 30, 2007 at 4:39 pm

      [...] Joe Fix for WordPress Post Preview [...]

    7. [...] Joe Fix for WordPress Post Preview [...]

    8. By Re-Enable Wordpress Post Preview | JJjunk on February 13, 2008 at 1:06 pm

      [...] Now, give it a try. I tested it on the latest version of WordPress (2.3.3) and it works great. When you get done writing a post and you want to preview it, just click the Save and Continue Editing button, then scroll down to the bottom of the Write Post page and you’ll see the preview. Thanks to WorkingAtHomeInternet.com. [...]


      Welcome...


      I appreciate you taking the time to visit, and hope you enjoy your stay. Look around, there are a lot of interesting posts for you to read and information for you to take with you.
      Contact Me --- Hire Me


      Poll

    • Sorry, there are no polls available at the moment.


    • Recommended by Joe




      Navigation


      --The Way-back Machine--

      ...from October 22, 2011...

      Oops, I must have been goofing off that day. ;-)


      promiseblue0.gif

    • Today’s Job Listings



    • Subscribe via e-mail

      Delivered by FeedBurner

    • Pages

    • Series

    • Categories

    • Archives