1$projectsLoop = new WP_Query(array('post_type' => 'project', 'posts_per_page' => -1));
2echo '<h2> Projects: </h2>';
3echo '<ol>';
4 while ($projectsLoop->have_posts()) : $projectsLoop->the_post();
5 $title = get_the_title();
6 $href = get_the_permalink();
7 echo "<li><a href='$href'>$title</a></li>";
8 endwhile;
9echo '</ol> <hr/>';