A simple loop sample
<?php
// Create the Query
$posts_per_page = -1;
$post_type = 'project';
$orderby = 'menu_order';
$order = 'ASC';
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$query = new WP_Query( array (
'post_type' => $post_type,
'posts_per_page' => $posts_per_page,
'orderby' => $orderby,
'order' => $order,
'paged' => $paged,
'meta_query' => array(
array(
'key' => 'year',
'value' => '2012',
'compare' => '='
)
)
)
);
?>