This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Preview Posts Everywhere

Description

Without that plugin you could preview every post in draft status just by clicking Preview button on post edit page. Unfortunately, that preview is available only for single page template. If you open home or category page you won’t see any drafts there.

Preview Posts Everywhere plugin will allow you to preview your drafts on home, category, archive and search pages. Now you can check your draft’s featured images, dates, titles on every page, before you publish the post.

Plugin works out of the box and after activation just go to home page to see your drafts on posts list. You do not need to click any preview button! Just go to your site and check list of posts. Remember that by default drafts will be visible only for logged in users with assigned Administrator role.

If you want to see your drafts also in widgets (for example on widget with latest posts list) just go to settings page (Settings->Preview Posts Everywhere) and check “Add drafts to all queries” option.

To be more strict, when option “Add drafts to all queries” is checked, drafts will be added in all places where WP_Query and The Loop are used.

Screenshots

  • Settings page

Installation

Using The WordPress Dashboard

  1. Upload ‘preview-posts-everywhere’ to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Done 🙂
  4. You can find a few settings under Settings->Preview Posts Everywhere (in most cases you do not need to change here anything)

FAQ

Will visitors be able to see my drafts?

No, drafts will be visible only for logged in users that have assigned proper role (administrator by default)

Why I don’t see drafts in sidebar widget?

By default drafts will be added only to main queries (for example query that select posts to display on home or category page).
To display drafts everywhere, go to settings page (Settings->Preview Posts Everywhere) and check “Add drafts to all queries”

After install I do not see any drafts on frontpage

Troubleshooting

  1. Make sure that you have at least one draft 🙂
  2. You have to be logged in to see drafts
  3. By default drafts are visible only for users with Administrator role.
    To check role assigned to your user, go to Users menu, find user on list and click Edit. Assigned role will be visible on list.
    You can select all roles that should see drafts in Settings->Preview Posts Everywhere.
  4. Sometimes plugin do not use main query to get data. You can try to check “Add drafts to all queries” option in Settings->Preview Posts Everywhere to add drafts to all queries.
  5. Some cache plugins (like WP Super Cache) by default are caching pages for logged in users. If you do not see drafts, disable that option or just refresh cache.
  6. If you cache plugin do not differentiate cache for logged in and normal users then be aware that it is possible that normal users will see your drafts
    that was cached during your admin session!

Contributors & Developers

“Preview Posts Everywhere” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.1

  • Fixed problems with native galleries
    https://wordpress.org/support/topic/breaks-wp-native-galleries

1.0

  • Initial release