wp_query beginner

After you create your custom query, you just write The Loop as you would for the default query. So your code would look like this:

if ( $query->have_posts() : while ( $query->have_posts() ) : $query->the_post();
   // Your Post Stuff Goes Here

endwhile;

wp_reset_postdata();

else : 
   // No Posts Found Code Goes Here
endif;

Note the use of wp_reset_postdata(). This is mandatory for custom queries. This function resets the post data back to the default query as URL requests are based on the default query and will load before templates.