BACK TO DIRECTORY

Premium Posts

by Shaun Scovil

5.0
(1 ratings)

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

Screenshots

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 &gt; Settings &gt; Reading.

Plugin options are added to WP-Admin > Settings > Reading.

Plugin Details

Active Installs
10
Total Downloads
2,050
Version
2.3
Requires WP
3.1
Requires PHP
Tested Up To
3.5.2
Added
2013-05-26
Last Updated
2013-05-30 2:16pm GMT

Ratings

5
1
4
0
3
0
2
0
1
0