title: Wordpress Advanced Custom Fields - display on PAGE template
body: <p>I am using Advanced Custom Fields with Wordpress. I have set up a field and can display it on my homepage/front-page.php template like this...</p>
  
  <pre><code>&lt;?php the_field('primary_tagline'); ?&gt;
  </code></pre>
  
  <p>I want to use the same field on my page.php template, but when i drop in the same code, no results are returned. I don't understand why it works on one template but not the other. Do i need different code to show the same field results across multiple templates? Here is the code...</p>
  
  <pre><code>   &lt;?php the_field('primary_tagline'); ?&gt;
  
      &lt;div id="primary" class="content-area"&gt;
          &lt;main id="main" class="site-main"&gt;
              &lt;?php while ( have_posts() ) : the_post(); ?&gt;
                  &lt;?php get_template_part( 'template-parts/content', 'page' ); ?&gt;
                  &lt;?php
                      if ( comments_open() || get_comments_number() ) :
                          comments_template();
                      endif;
                  ?&gt;
              &lt;?php endwhile; ?&gt;
          &lt;/main&gt;&lt;!-- #main --&gt;
      &lt;/div&gt;&lt;!-- #primary --&gt;
  </code></pre>
  
  <p>Is it a loop problem? ACF won't show outside a loop?</p>