WP Query results showing posts outside of category ID
category_ID is not a valid key for WP_Query. cat would be available instead, if you want to query a category: Example: $args = array( ‘numberposts’ => -1, ‘post_type’ => ‘rooms’, ‘cat’ => 8, ); $the_query = new WP_Query( $args ); If your category is not actually the taxonnomy category but a custom taxonomy, this would … Read more