now uses the_query and get_post