Title: Preview Posts Everywhere
Author: Pawel Wawrzyniak
Published: <strong>2013 年 10 月 15 日</strong>
Last modified: 2014 年 9 月 5 日

---

搜索插件

![](https://ps.w.org/preview-posts-everywhere/assets/banner-772x250.png?rev=788267)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/preview-posts-everywhere_404041.svg)

# Preview Posts Everywhere

 作者：[Pawel Wawrzyniak](https://profiles.wordpress.org/pawel-wawrzyniak/)

[下载](https://downloads.wordpress.org/plugin/preview-posts-everywhere.1.0.1.zip)

 * [详情](https://cn.wordpress.org/plugins/preview-posts-everywhere/#description)
 * [评价](https://cn.wordpress.org/plugins/preview-posts-everywhere/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/preview-posts-everywhere/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/preview-posts-everywhere/#developers)

 [支持](https://wordpress.org/support/plugin/preview-posts-everywhere/)

## 描述

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.

## 屏幕截图

[⌊Settings page⌉⌊Settings page⌉[

Settings page

## 安装

#### 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)

## 常见问题

  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!

## 评价

此插件暂无评价。

## 贡献者及开发者

「Preview Posts Everywhere」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Pawel Wawrzyniak ](https://profiles.wordpress.org/pawel-wawrzyniak/)

[帮助将「Preview Posts Everywhere」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/preview-posts-everywhere)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/preview-posts-everywhere/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/preview-posts-everywhere/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/preview-posts-everywhere/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/preview-posts-everywhere/)。

## 更新日志

#### 1.0.1

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

#### 1.0

 * Initial release

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**12 年前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 3.5.1 或更高版本 **
 *  已测试的最高版本为 **4.0.38**
 *  语言
 * [English (US)](https://wordpress.org/plugins/preview-posts-everywhere/)
 * 标签
 * [draft](https://cn.wordpress.org/plugins/tags/draft/)[preview](https://cn.wordpress.org/plugins/tags/preview/)
 *  [高级视图](https://cn.wordpress.org/plugins/preview-posts-everywhere/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  3 条 5 星评价     ](https://wordpress.org/support/plugin/preview-posts-everywhere/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/preview-posts-everywhere/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/preview-posts-everywhere/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/preview-posts-everywhere/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/preview-posts-everywhere/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/preview-posts-everywhere/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/preview-posts-everywhere/reviews/)

## 贡献者

 *   [ Pawel Wawrzyniak ](https://profiles.wordpress.org/pawel-wawrzyniak/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/preview-posts-everywhere/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://wpsamurai.pl/preview-posts-everywhere)