Title: Post Glue
Author: Luis Rodrigues
Published: <strong>2016 年 2 月 16 日</strong>
Last modified: 2016 年 2 月 16 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/post-glue.svg)

# Post Glue

 作者：[Luis Rodrigues](https://profiles.wordpress.org/goblindegook/)

[下载](https://downloads.wordpress.org/plugin/post-glue.zip)

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

 [支持](https://wordpress.org/support/plugin/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()`](https://developer.wordpress.org/reference/functions/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](https://github.com/log-oscon/post-glue).

## 安装

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

## 评价

![](https://secure.gravatar.com/avatar/5259aad43e4f23bf29d16ec6968167079e141954c31c62b6f95e5643b9b7d584?
s=60&d=retro&r=g)

### 󠀁[Thank you!](https://wordpress.org/support/topic/thank-you-1351/)󠁿

 [eLmore](https://profiles.wordpress.org/elmore/) 2017 年 5 月 29 日

Easy to use.

![](https://secure.gravatar.com/avatar/b7a012092ab8958977998298ca9567475f87efbaf0ad57256943390ca05812c3?
s=60&d=retro&r=g)

### 󠀁[Do the job](https://wordpress.org/support/topic/do-the-job-14/)󠁿

 [Aurélien Denis](https://profiles.wordpress.org/maigret/) 2016 年 9 月 3 日

It just works!

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/post-glue/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Luis Rodrigues ](https://profiles.wordpress.org/goblindegook/)
 *   [ log_oscon ](https://profiles.wordpress.org/log_oscon/)

[帮助将「Post Glue」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/post-glue)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**10 年前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 4.4 或更高版本 **
 *  已测试的最高版本为 **4.4.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/post-glue/)
 * 标签
 * [sticky posts](https://cn.wordpress.org/plugins/tags/sticky-posts/)
 *  [高级视图](https://cn.wordpress.org/plugins/post-glue/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Luis Rodrigues ](https://profiles.wordpress.org/goblindegook/)
 *   [ log_oscon ](https://profiles.wordpress.org/log_oscon/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/post-glue/)