March 22, 2017
Coupon Creator Pro is a great plugin to highlight offers and deals available to your customers on your website. The coupons come with different themes available, allow for both image and text injection, and are responsive, as well as printable.
To display the coupons within your templates (without the use of the shortcode), you will need to remember to grab the Coupon’s Expiry Date Field.
$args = array( 'post_type' => 'cctor_coupon', // coupon post type 'posts_per_page' => -1, 'meta_query' => array( array( 'key' => 'cctor_expiration_mysql', // date field 'value' => date( 'Y-m-d h:i:s', current_time( 'timestamp' ) ), // current time 'compare' => '>=', // if current time is past date field time )), );