title: Use permalink in PHP with HTML
body: <p>I have a question using HTML and PHP combined.  </p>
  
  <p>I have this little code:  </p>
  
  <pre><code>$args = array( 'post_type' =&gt; 'program', 'posts_per_page' =&gt; 100 );
  $loop = new WP_Query( $args );
  
          while ( $loop-&gt;have_posts() ) : $loop-&gt;the_post();
          echo '&lt;div class="singleprogram"&gt;';
              echo '&lt;div class="entry-title"&gt;&lt;a href="'the_permalink()'"&gt;';
              the_title();
              echo '&lt;/a&gt;&lt;/div&gt;'; 
              echo '&lt;div class="entry-content"&gt;';
              the_content();
              echo '&lt;/div&gt;&lt;/div&gt;';
  
          endwhile;
  </code></pre>
  
  <p>If I use this, my page gets all blank. Any ID what I'm doing wrong??  </p>
  
  <p>( if i delete <code>the_permalink()</code> and leave a <code>href=""</code> blank then its working but of course it doesn't link to something )  </p>
  
  <p>Thanks in advance!  </p>