Trying to make an advanced taxonomy query like this:
array( ‘post_type’ => ‘coupon_type’, ‘tax_query’ => array( array( ‘order’ => ‘DESC’, ‘posts_per_page’ => ’10’, ‘taxonomy’ => ‘coupons’, ‘field’ => ‘slug’, ‘terms’ => ‘expired’, // exclude expired. ‘operator’ => ‘NOT IN’)
),)
Though it appears this is not possible via the Recent Listings Layout object. Is there any way to create such a query without hacking the core?
This reply is for PremiumPress customers only.
663
Views
8
Replies
Copyright © 2010-2026 PremiumPress Limited.
Trying to make an advanced taxonomy query like this:
array(
‘post_type’ => ‘coupon_type’,
‘tax_query’ => array(
array(
‘order’ => ‘DESC’,
‘posts_per_page’ => ’10’,
‘taxonomy’ => ‘coupons’,
‘field’ => ‘slug’,
‘terms’ => ‘expired’, // exclude expired.
‘operator’ => ‘NOT IN’)
),)
Though it appears this is not possible via the Recent Listings Layout object. Is there any way to create such a query without hacking the core?
Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now