/* Valid Coupon
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
query_posts($query_string . '&' .http_build_query(array(
'posts_per_page' =>-1,
'meta_query' => array(
'relation' => 'OR',
array(
'key' => 'end',
'value' => date('Ymd'),
'compare' => '>=',
'type' => 'DATETIME'
),
array(
'key' => 'end',
'compare' => '=',
'value' => '',
)
)
)));
if ( have_posts() ) :
// Start the Loop.
while ( have_posts() ) : the_post();