I have produced a custom publish type using register_post_type( 'gallery' , $args );, setting the capacity_type to 'post'.

I have then produced single-gallery.php to show this data.

Within single-gallery.php I've place the following code:

<?php get_header(); ?>
  <div id="galleryShow">
    <?php if ( have_posts() ) while ( have_posts() ) : the_post();
      echo(get_the_ID());
      echo($post->post_title);
      the_content();
    endwhile; ?>
  </div>
<?php get_footer(); ?>

When I comprehend it this will show the particulars from the presently selected 'gallery' page? However it's showing the ID, title and content for each gallery page.

Must I create single-gallery.php and also have everything 'out' from the loop instead of 'in the loop' when i did? If that's the case wouldso would I recieve just the selected pages ID outdoors the loop?

I simply up-to-date my website to Wordpress 3.1 also it appears to possess resolved this problem.