• Resolved mashby

    (@mashby)


    I’m new to WordPress and still getting my feet under me, but I noticed that when editing a Draft, even after it’s been saved, it doesn’t appear in the Preview Post window.

    Once the draft has been saved as “Published”, or “Private” it appears in the Preview window, but not as “Draft”. Is this normal?

    I found a bunch of threads about this topic, but they were all over a year old. I’m running version 2.0, so I didn’t know if this was still a problem

Viewing 12 replies - 1 through 12 (of 12 total)
  • Kafkaesqui

    (@kafkaesqui)

    Once the draft has been saved as “Published”, or “Private” it appears in the Preview window, but not as “Draft”. Is this normal?

    No, that is not normal. A preview of the post should appear once it has been saved to the database, even in draft status. Are you not even getting the preview iframe appearing?

    Thread Starter mashby

    (@mashby)

    Yes, the preview appears, and it’s displaying the home page, but it’s not displaying the draft until it’s published.

    Does the preview use the index.php template code? If so, then it would seem that I’ve messed something up when I tried to implement a category listing in the sidebar, as per this post.

    Thanks for the reply!

    Thread Starter mashby

    (@mashby)

    OK, I found the error and fixed it. 🙂

    The Page Preview uses the single.php file from your theme. In trying to get the sidebar to include some category information, I did some tinkering with how the single pages displayed and messed it up.

    Totally my fault. Ahhh the pain of the school of hard knocks. 😀

    Kafkaesqui

    (@kafkaesqui)

    I knew single.php was used for the preview template, but didn’t guess something there would be the cause. Hmm.

    Glad you tracked it down.

    bellringr

    (@bellringr)

    I’m also having this problem, but I have no single.php file in my theme. I’m seeing my blog in the preview pane as it should look, but instead of my saved post, it says, “Sorry, no posts matched your criteria.” Once it is published, I can see it when modifying the post.

    I reinstalled WP twice, no change.

    Now, I don’t know much of anything about php, so I took the single.php file from the default theme, copied into mine, uploaded it, but that only made it worse.

    I don’t use categories in this blog – everything goes into General.

    Any ideas/suggestions? 🙂

    Thanks much!

    “Sorry, no posts matched your criteria.”

    I’m also getting this so if anyone has the solution that’d be grand.

    Post preview has always worked for me until a couple of days ago. No change made to WP. Studied all the problems and responses with preview, but none match my problem.

    I had a friend who uses WP check it and he said he can see it with Firefox and other browsers. This problem only occurs on Firefox — not Internet Explorer. I can preview in IE and I am not about to switch to IE for WP when it works great on Firefox.

    The only thing I can guess is adding the googleads messed something up… but my friend had no problems viewing it in Firefox.

    Is there a way to take out GoogleAds in preview mode so they only show up in published mode?

    BTW, my standard template and the entry’s title show up in preview mode — just not the body of the entry.

    I have having the exact same problem as notphotomatt. I haven’t touched the install, and all of sudden, my previews started redirecting to index.php.

    To add to the confusion, I tried another PC. The first time I looked, everything was fine. The preview of the draft appeared normal.

    Upon a refresh, however, the problem came back and will not go away. I’m really scratching my head here, would really appreciate some advice or insight.

    Dunno if this is related or not, but are you using the WP-Cache plugin? I had a similar situation with an older version.

    That is a good guess, but I’m clean there. But caching of some sort would explain the random nature of this. I’m going to keep digging.

    Well, after trying a few things, we’re back to normal. While I’m not positive of exactly which one of these things worked, this is what I tried:

    1) I tried implementing this plugin, which cleans out the cache after each admin page load: link

    2) I temporarily disabled the overall WordPress caching adding the following line to wp-config.php:

    define(’DISABLE_CACHE’, true);

    3) I noticed in my blog options that my URL omitted the “www” before my domain. I added it, logged back in, and boom – problem fixed.

    (shrugs)

    Best guess is that one of the caching fixes did the trick.

    scottfeldstein

    (@scottfeldstein)

    WOOOT!!! Adding the “www” into my blog url fixed my own long-standing preview problem! Thanks!!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Shouldn’t Drafts Appear In The Post Preview?’ is closed to new replies.