Support

Account

Home Forums General Issues Saved field Data not Displaying on Front End

Unread

Saved field Data not Displaying on Front End

  • Hi Elliott,

    I have created custom fields in a field group and have added that field group to a specific post. I have also input data into those custom fields from within the post.

    I have used the following code in my page/post template in order to display the data:

    <?php while ( have_posts() ) : the_post(); ?>
    <?php echo get_field('first_name'); ?>
    
    			<?php endwhile; ?>

    And I have also tried:

    <?php while ( have_posts() ) : the_post(); ?>
    <?php the_field('first_name'); ?>
    
    			<?php endwhile; ?>

    However, neither one of these will get my data from the field named “first_name” to display.

    I’m using WPMU multi site and have ACF activated for this particular site. Please help.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.