這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

安裝方式

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〉的開發相關工作。

參與者

將〈Preview Posts Everywhere〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.1

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

1.0

  • Initial release