title: Display Posts By DYNAMIC Tag
body: <p>Although I have experience with PHP, WordPress is pretty new to me and I am struggling here.</p>
  
  <p>I am trying to help a friend complete a theme. He works with several artists and each artist has a WP page named after the artist (i.e., Tom Jones) on which he wants to display only the posts about that artist. We define a tag for each artist ( Tom Jones ) with a slug like ( tom-jones )</p>
  
  <p>Following the Codex, I am prepping the Loop in the template as follows:</p>
  
  <pre><code>$tags = get_tags();
  //query_posts( array( 'tag' =&gt; $tag-&gt;slug ) );
  query_posts( array( 'tag' =&gt; 'tom-jones' ) );
  
  if( have_posts()) : while( have_posts() ) : the_post();
    echo '&lt;li id="feed&lt;?php theID(); ?&gt;" style="border-bottom:1px solid #404040;"&gt;';
    echo '&lt;table&gt;&lt;tr&gt;&lt;td width="40"&gt;';
    echo '&lt;img src="&lt;?php echo get_post_meta($post-&gt;ID, 'image_path', true); ?&gt;" /&gt;';
    echo '&lt;/td&gt;&lt;td&gt;&lt;a href="';
    the_permalink(); 
    echo '"&gt;';
    the_title();                            
    echo '&lt;/a&gt;&lt;br&gt;&lt;span class="smTxt"&gt;Posted by ';
    the_author();
    echo ' on &lt;em&gt;';
    the_time('F jS, Y');
    echo '&lt;/em&gt;&lt;/span&gt;&lt;br&gt;';
    the_excerpt();
    echo '&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/li&gt;';
    endwhile;
  else:
    echo '&lt;h3&gt;There are no posts.&lt;/h3&gt;';
  endif;
  </code></pre>
  
  <p>I would have thought that the query_post that is commented out would have grabbed the particular slug of the artist but it returns "No Posts". When I hard code as it is now, it works as expected.</p>
  
  <p>Any help is greatly appreciated.</p>