How do I query a custom post type with a custom taxonomy?
Firs of all don’t use query_posts() ever, read more about it here: When should you use WP_Query vs query_posts() vs get_posts()?. You have to use WP_Query to fetch posts what you need. Read documentation for it. In your case the query could be like this: $the_query = new WP_Query( array( ‘post_type’ => ‘Adverts’, ‘tax_query’ => … Read more