title: How to have featured image link to larger version in Wordpress?
body: <p>How do I link a post's featured image to its full size version on a category page?</p>
  
  <p>Here is my loop on my category.php:</p>
  
  <pre><code>    &lt;h1&gt;Professional Portfolio Gallery - &lt;?php single_cat_title(); ?&gt;&lt;/h1&gt;
      &lt;p&gt;&lt;?php echo category_description(); ?&gt;&lt;/p&gt;
      &lt;?php if (have_posts()) : ?&gt;
      &lt;ul class="portfolio"&gt;
      &lt;?php while (have_posts()) : the_post(); ?&gt;
      &lt;li&gt;
      &lt;?php 
      if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
      the_post_thumbnail();
      } 
      ?&gt;
      &lt;?php the_excerpt(); ?&gt;&lt;/li&gt;
      &lt;?php endwhile; ?&gt;
      &lt;/ul&gt;   
      &lt;?php wp_paging(); ?&gt;
      &lt;?php else : ?&gt;
  
      &lt;h1&gt;Not Found&lt;/h1&gt;
      &lt;p&gt;&lt;?php _e("Sorry, but you are looking for something that isn't here."); ?&gt;&lt;/p&gt;
  
      &lt;?php endif; ?&gt; 
  </code></pre>
  
  <p>Any help would be appreciated!</p>