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

Post Glue

描述

Sticky posts for WordPress, improved.

This plugin addresses the following issues and limitations found in the core’s implementation of sticky posts:

  • Only the core post type supports this feature.
  • Sticky posts are added in front of your homepage’s results, yielding more posts than the configured per-page setting.
  • Sticky posts reappear as you navigate further into the archive.
  • Sticky posts are prepended to your results when querying specific posts with post__in.
  • Difficult to include sticky posts in custom queries.

Some of these issues cause strange behaviour (like when using the REST API) and complicate the creation of custom homepage layouts.

At one point we decided to stop fighting the core and partially reimplemented the feature using custom post fields and meta queries, giving you:

  • Sticky posts for all non-hierarchical post types.
  • Post stickiness on post type and taxonomy archives.
  • Respect for your configured per-page setting, with stickies spilling over onto the next page.
  • Duplicates filtered from your archive pages.
  • The ability to sort by stickiness on virtually any WP_Query lookup.
  • Support for the is_sticky() function.
  • A predictable WordPress REST API experience.
  • A slight SQL query overhead (sorry!)

Post Glue will continue to save post IDs to the sticky_posts option, meaning you’ll retain some core functionality even if you decide to stop using the plugin.

Please follow and contribute to Post Glue’s development on Github.

安裝

Using [Composer](https://getcomposer.org)

  1. Install the plugin package using composer require logoscon/post-glue.

Using the WordPress Dashboard

  1. Navigate to the ‘Add New’ in the plugins dashboard
  2. Search for ‘post glue’
  3. Click ‘Install Now’
  4. Activate the plugin on the Plugin dashboard

Uploading in WordPress Dashboard

  1. Navigate to the ‘Add New’ in the plugins dashboard
  2. Navigate to the ‘Upload’ area
  3. Select post-glue.zip from your computer
  4. Click ‘Install Now’
  5. Activate the plugin in the Plugin dashboard

Using FTP

  1. Download post-glue.zip
  2. Extract the post-glue directory to your computer
  3. Upload the post-glue directory to the /wp-content/plugins/ directory
  4. Activate the plugin in the Plugin dashboard

評價

閱讀全部2個評價

貢獻者及開發者

“Post Glue” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Post Glue 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.0.0

  • Initial release.