get_template_part() not firing within a switch statement when template has new WP_Query
The problem: The code never cleans up after its queries Your queries are currently missing several things: The code never checks that the query found any posts via if ( $q->have_posts() ) There are no calls to wp_reset_postdata When you call either the_post or setup_postdata, you change the global $post variable. This can cause issues … Read more