Ok, I’ve found the solution thanks to this post. Here’s the code that worked:
<?php
$args=array(
'awards-type' => 'restaurant',
'post_type' => 'awards',
'post_status' => 'publish',
'posts_per_page' => -1,
'caller_get_posts'=> 1
);
$my_query = null;
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<?php
endwhile;
}
wp_reset_query(); // Restore global post data stomped by the_post().
?>
Thanks to MichaelH for the code.