$args = array( 'tax_query' => array( array( 'taxonomy' => 'product_category', 'field' => 'slug', 'terms' => get_queried_object()->slug ) ) ); query_posts($args);