title: Custom shortcode always appears at top of content
body: <p>I have created a custom shortcode and can get the information to output, however it does not show up where I have placed it in the content hierarchy - it always prints at the top of the post/page. Any clue as to why this may be happening?</p>
  
  <p>in my functions.php:</p>
  
  <pre><code>function sc_pdf($atts, $content = null) {
     $pdfname = the_field('pdf_title');
     $pdfimage = the_field('pdf_file');
     $pdflink = the_field('pdf_thumbnail');
     return '&lt;p&gt;'.$pdfname.'&lt;/p&gt;&lt;p&gt;'.$pdfimage.'&lt;/p&gt;&lt;p&gt;'.$pdflink.'&lt;/p&gt;';
  }
  add_shortcode("peedeef", "sc_pdf");
  </code></pre>