i am trying to produce a portfolio website using wordpress,

each publish has view costum fields, such as known as type - with the need for "featured" or "not-featured"

now when user clicks the publish title - they're going the the only.perl to determine the whole publish, here' would like to display all featured pictures

i attempted this

         <?php while ( have_posts() ) : the_post() ?>

      <?php  if(get_post_meta($post->ID, 'type', true) == "featured") {; ?>
  <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( __('Permalink to %s', 'your-theme'), the_title_attribute('echo=0') ); ?>" rel="bookmark"> 
<img src="<?php echo get_post_meta($post->ID, 'intro_thump', true); ?>" alt="Icon for Post #<?php the_ID(); ?>" />
<?php  }; ?>
<div class="entry-content">

     </div><!– .entry-content –> 
      <?php endwhile; ?> 

(THIS CODE Is Comparable To THE CODE I Personally Use AT INDEX.PHP There It Will WORK, At SINGLE.PHP It Doesn't WORK)

but this doesn't display all of the pictures (just the current posts' thumbnail (is it is a feature publish))

this really is my first attempt of attempting to produce a theme from blank so i am unsure exactly what the error might be

interesting help

The code inside your question only loops with the posts came back through the query designed for the present view, within the situation of merely one publish view that's one publish. You need to execute a new query to retrieve all of the posts which have the needed meta value:

  query_posts(array("meta_key" => "type", "meta_value" => "featured"));
  if (have_posts()) : while (have_posts()) : the_post();
  <!-- Display thumbnails -->
<?php endwhile; endif; ?>