title: ACF: Display values outside the main loop
body: <p>I am coding a theme that uses an archive on a page with a special template. Above the results of the archive (that also means outside of the loop) I want to display the values of some custom fields. (e.g. the value of the field “intro”. I tried to create an additional loop and have the values displayed, but there are no results. Does anybody see a mistake?
  Thanks!
  Raphael
  Here is what I tried last:</p>
  <pre><code>&lt;div class=&quot;newsearch_intro&quot;&gt;
          &lt;?php global $post; 
              $args = array('numberposts'=&gt;'1'); 
              $custom_posts = get_posts($args);
              foreach($custom_posts as $post) : setup_postdata($post);
              the_field('intro');
              endforeach;
          ?&gt;          
  &lt;/div&gt;
  </code></pre>