跳到内容

Premium Posts

v2.3

Shaun Scovil · 2013年5月26日 上架

Mark posts as "Premium" and display a custom message or ad code.

正在使用
10+
评分
5.0 / 5
累计下载
2,149
最近更新
2013年5月30日
1 条评价需要 WordPress 3.1+已测试到 3.5.2

贡献者

截图

A Premium Post checkbox is added to the publish metabox in the post editor screen.
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 column is added to the post admin table.
A Premium Post checkbox is added to the Quick Edit menu on 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 .
Plugin options are added to WP-Admin > Settings > Reading .

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.

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 } ?>

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums