title: wordpress permalink wrap around block element
body: <p>In Wordpress I am trying to use and anchor tag to wrap around an article using get_Permalink() as the href. Here is my code so far (this is within a loop).</p>
  
  <pre><code>echo '&lt;a href="' .get_permalink(). '"&gt;';
      echo '&lt;article class="col-xs-6 col-sm-3 port-box"&gt; &lt;!-- portflio article box --&gt;'; 
              the_post_thumbnail( 'portfolio-thumbnail', array('class' =&gt; 'img-responsive') );
                  echo '&lt;div class="port-details focus-box"&gt;';
                      echo'&lt;h3 class="latestnews-title red-border-bottom"&gt;&lt;a href="'.get_permalink().'" title="'.get_the_title().'"&gt;'.get_the_title().'&lt;/a&gt;&lt;/h3&gt;';
                          echo'&lt;p&gt;'.get_post_meta($post-&gt;ID, 'Portfolio-type', true).'&lt;/p&gt;';
                          echo '&lt;p&gt;';
                              echo get_post_meta($post-&gt;ID, 'Details', true);
                          echo '&lt;/p&gt;';
                      echo '&lt;/div&gt;';                                  
                  echo '&lt;/article&gt;';
              echo '&lt;/a&gt;'; 
  </code></pre>
  
  <p>When I Look at the output code it shows an anchor tag being output, but the permalink does not place the url into the href. </p>
  
  <p>Is it possible to wrap a article in a "a" tag? If so does anyone have some guidence on how to make it work. </p>
  
  <p>thanks</p>