I have a taxonomy called
coupon_category. In a
query_post I am trying to call all posts from related custom taxonomy with the same
If I use:
<?php // show all active coupons for this category from related 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', 'posts_per_page' => 4, 'tax_query' => array( array( 'taxonomy' => 'coupon_category', 'field' => 'slug', 'terms' => 'mode', ), ) ) ); ?>
I can show all related posts with the term "mode" however I would like to automate it, so that always the terms (
coupon_category) that are already in use on the page are shown.