title: How to diplay tag link in wordpress
body: <p>After every post I am displaying tags</p>
  
  <pre><code>&lt;?php
   global $post;
   foreach(get_the_tags($post-&gt;ID) as $tag) {
    echo '&lt;li&gt;'.$tag-&gt;name.'&lt;/li&gt;';
    }
  ?&gt;
  </code></pre>
  
  <p>Now I need to display tag not just as text but as a link that would display <em>all posts filtered by given tag</em>, just like on stackoverflow when you click a tag below the question.</p>
  
  <ol>
  <li>How to make it?</li>
  <li>What page template will be used to display search results?</li>
  </ol>