• jsites

    (@jsites)


    So I’m using Advanced Custom Fields for a lot of things on a current project in development, and I’ve run into a problem that is probably staring me in the face, yet I’m unable to see it.

    So I’ve used the the_field() function on several different php files and it’s always worked, but this one seems to be causing some issues.

    Here is the code:

    <?php
    	/* This is the template for the Project Category Landing Pages */
    get_header(); ?>
    <div id="primary" class="site-content">
      <div id="content" role="main">
          <?php while ( have_posts() ) : the_post(); ?>
    
            <div class="entry-content">
    		  <h1 class="pageTitle"><?php the_field('qd_project_category_c1_text'); ?>.</h1>
    		  <p><?php the_field('qd_project_category_c1_text');?>.</p>
    		  <h1 class="pageTitle"><?php the_field('qd_project_category_c2_header');?>.</h1>
    		  <p><?php the_field('qd_project_category_c2_text');?>.</p>
    		</div><!--entry-content-->
          <?php endwhile; // end of the loop. ?>
      </div><!--#content-->
    </div><!-- #primary -->
    <?php get_footer(); ?>

    That is the entire template file that is being used right now, and all of the html tags draw properly, but the content being pulled from the_field doesn’t display.

    any thoughts on what I’m missing?

  • The topic ‘[ACF] Problem using the_field on a custom template’ is closed to new replies.