Pull in custom content types into page template

The loop in your code is automatically going to pull data from the current page ID (i.e. Photos). You have to define the query for which data you’re looking for. Be sure to replace photo with whatever the slug is for your post type.

See http://codex.wordpress.org/Class_Reference/WP_Query for other arguments you can use in addition to post_type.

<?php

$query = new WP_Query( array( 'post_type' => 'photo' ) );

if ( $query->have_posts() ) :

    while ( $query->have_posts() ) : $query->the_post(); ?>

             <?php the_title(); ?>

    <?php endwhile;

endif;

?>