title: Wordpress - get link to a post
body: <p>I want to display the thumbnail of a post. If the user clicks the thumbnail he gets directed to that post. But when clicking it I get a 403 ERROR. I'm new to php what is wrong?</p>
  
  <p>PHP</p>
  
  <pre><code>&lt;?php
  query_posts('cat=5');
  while (have_posts()) : the_post();
  
   the_title();
  
  echo '&lt;a href="&lt;?php the_permalink();?&gt;"&gt;';
      the_post_thumbnail();
  echo '&lt;/a&gt;';
  endwhile;
  ?&gt;
  </code></pre>