Coupon Creator Pro Custom Query

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.

Example wp_query

$args = array(
	'post_type' => 'cctor_coupon', // coupon post type
	'posts_per_page' => -1,
	'meta_query' => 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


Leave a Reply

katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.