loop query exclude meta_key with meta_value
-
Hi I use a loop like this:
// show all active coupons for this store and setup pagination $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts( array( 'post_type' => APP_POST_TYPE, 'post_status' => 'publish', APP_TAX_STORE => $term->slug, 'ignore_sticky_posts' => 1, 'posts_per_page' => -1, 'paged' => $paged ) );
now I have a meta value
meta_key' => 'clpr_excoupon'
it is either 1 or 0.I would like to exclude all
meta_key' => 'clpr_excoupon'
with'meta_value'=> 0,
and ‘NOT EXISTS’ need help!!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘loop query exclude meta_key with meta_value’ is closed to new replies.