WP Premium Posts

This Plugin requires Forms Management System – WordPress FrontEnd Posting & Contact Forms Builder Plugin and Tajer- All In One eCommerce WordPress Plugin.

 

 

How To Use It?

1- Download, install, and activate the plugin.

2- Create Tajer product with say three prices, specify the posts limit for each price from the price options.

WP Premium Posts Tajer Settings

3- Create FMS posting form and from the “Premium Posts” tab assign that product to this form and set up your premium settings.

WP Premium Posts FMS Settings

 

How to display the premium posts?

The premium posts are nothing more than a normal posts(or posts types) with “_wpp_is_featured” meta key, they will be retrieved by your default theme or plugin loops like any normal posts, however if you want to display them in special position or template or maybe want to create special style for them, there are many different ways to get just the premium posts here is two of them:

  • First Way:
  1. Put the following code before the post loop starts where you want to show the featured posts.
    query_posts($query_string."&wpp_featured=yes");
  2. Put the following code after the loop if it doesn’t exist.
    wp_reset_query();
  • Second Way:
$args = array(
'posts_per_page' => 5,
'meta_key' => '_wpp_is_featured',
'meta_value' => 'yes'
);

$featured_posts = new WP_Query($args);