WP Query with custom taxonomy May 24, 2022 by Tarik Billa You have to use your object like this : while ( $query->have_posts() ) : $query->the_post();