Title: Premium Posts
Author: Shaun Scovil
Published: <strong>2013 年 5 月 26 日</strong>
Last modified: 2013 年 5 月 30 日

---

搜索插件

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

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

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

# Premium Posts

 作者：[Shaun Scovil](https://profiles.wordpress.org/sscovil/)

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

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

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

## 描述

Want to add a special message or ad code to your most popular blog posts? This plugin
enables you to do just that!

 1. Install and activate the plugin via `WP-Admin > Plugins`.
 2. Mark your top posts as “Premium” using a checkbox in the Post Editor.
 3. Go to `WP-Admin > Settings > Reading` and edit your premium post message.
 4. Choose to place your message above or below the post content, or place it manually
    using the `<?php premium_posts(); ?>` template tag inside [The Loop](https://codex.wordpress.org/The_Loop).

This plugin also adds the conditional tag `is_premium_post()` for use in your theme
template files. You can use it to test if a specific post is marked as premium by
passing the post ID (or post object) as a parameter.

Example:

    ```
    <?php if ( is_premium_post( $post_id ) ) { ?>

        <?php echo get_the_title( $post_id ); ?> is a premium post!

    <?php } ?>
    ```

## 屏幕截图

 * [[
 * A `Premium Post` checkbox is added to the publish metabox in the post editor 
   screen.
 * [[
 * A `Premium Post` column is added to the post admin table.
 * [[
 * A `Premium Post` checkbox is added to the Quick Edit menu on the post admin table.
 * [[
 * Plugin options are added to `WP-Admin > Settings > Reading`.

## 安装

 1. Install and activate the plugin via `WP-Admin > Plugins`.
 2. Mark your top posts as “Premium” using a checkbox in the Post Editor.
 3. Go to `WP-Admin > Settings > Reading` and edit your premium post message.
 4. Choose to place your message above or below the post content, or place it manually
    using the `<?php premium_posts(); ?>` template tag inside [The Loop](https://codex.wordpress.org/The_Loop).

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Shaun Scovil ](https://profiles.wordpress.org/sscovil/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 2.3

 * Security update: Added data sanitization to plugin settings displayed in form
   fields on settings page.

#### 2.2.2

 * Bug fix: resolved undefined index error in `WP-Admin > Posts > Add New`.

#### 2.2.1

 * Bug fix: save_post() method was throwing an error in the QuickPress dashboard
   widget.
 * Renamed premium_post_message() method to the more semantic get_post_message().
 * Clarified some inline documentation.

#### 2.2

 * Security update: Added settings field sanitization callback.

#### 2.1

 * Added plugin settings to `WP-Admin > Settings > Reading` for easy management 
   of premium & standard post messages.
 * Added `premium_posts()` template tag for manual placement of premium/standard
   post message.

#### 2.0.1

 * Added term filter for Standard posts in Posts admin table.

#### 2.0

 * Updated version uses a hidden taxonomy to mark posts as premium.
 * Added a column to the `Posts` admin table.
 * Added a checkbox to the `Quick Edit` menu.
 * Added term filter for premium posts in `Posts` admin table.
 * Cleaned up code by moving functions into a singleton class.
 * Added a .pot file for localization.

#### 1.0

 * Initial release stored post IDs of premium posts as an array in the options table.

## 额外信息

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

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Shaun Scovil ](https://profiles.wordpress.org/sscovil/)

## 支持

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

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