As Toscho mentionned above, you didn’t close your if
and while
. When in doubt, indent your codes to avoid confusion.
$my_query = new WP_Query( $args );
if ($my_query->have_posts()) :
while($my_query->have_posts()) :
$my_query->the_post();
endwhile;
endif;
wp_reset_postdata();
/* The 2nd Query (without global var) */
$query2 = new WP_Query( $args2 );
// The 2nd Loop
if ($query2->have_posts()) :
while($query2->have_posts()) :
$query2->the_post();
endwhile;
endif;
wp_reset_postdata();
Also, you don’t need to use wp_reset_query()
with WP_Query. This question deals with that issue.