Break down ads per category and display them on a page
Hi All,
I have been looking around the forum for an answer to this but have not found anything so I thought I'll write something about it.
What I am trying to achieve is to have all the ads broken down per category and displaying on a same page so I thought I could use a query_posts but the query return nothing. Any idea why?
Thanks!
P
<?php query_posts(
array (
'post_type' => 'APP_POST_TYPE',
'showposts' => 20,
'tax_query' => array(
'taxonomy' => 'APP_TAX_CAT',
'field' => 'slug',
'terms' => 'eye-art' //category slug
)
)
);
?>
<?php get_template_part( 'loop', 'ad_listing' ); ?>