title: Wordpress Custom fields display file URL
body: <p>I have the following code and need to show THREE things from my custom post type called fact-sheet.</p>
  
  <ol>
  <li>The Title</li>
  <li>The summary (fact_sheet_summary)</li>
  <li>A file upload URL (fact_sheet_pdf_link)</li>
  </ol>
  
  <p>I can get the first two to work but no idea how to do the third.
  Basically my output should be...</p>
  
  <p><code>The Title
   The Summary paragraph
   Click here to download as PDF</code></p>
  
  <p>Any ideas how I can query to list all of these post type results? Is there a better way to do this rather than what I have below? The main problem is, I can't get the URL of the uploaded file.</p>
  
  <pre><code>&lt;?php
  
  $posts = get_posts(array(
  'numberposts' =&gt; -1,
  'post_type' =&gt; 'fact-sheet',
  'order' =&gt; 'ASC',
  ));
  
  if($posts)
  {
  
  
  foreach($posts as $post)
  {
      echo '&lt;span class="fact-sheet-title"&gt;' . get_the_title($post-&gt;ID) . '&lt;/span&gt;&lt;br /&gt;';
      echo '&lt;p&gt;&lt;span class="fact-sheet-summary"&gt;' . the_field('fact_sheet_summary') . '&lt;/span&gt;&lt;/p&gt;';
  }
  }
  
  ?&gt;
  </code></pre>