Home Forums Front-end Issues Some ACF Display and Some Do Not Display on the Page


Some ACF Display and Some Do Not Display on the Page

  • Hello,

    I’ve been using ACF in my theme. Lately, when I create new field groups and publish them, some of the fields display on the page, and some do not. I have checked my code and field names and I have not done anything different from my other pages, which are displaying just fine. What could be causing this?

    Update: Now the field is not saving my selection when I update the page.

  • I didn’t use a loop on this page. The first image will not display at all. Everything else where I have a custom field displays fine. Here is my code:

    Template Name: Medic First Aid

    // Advanced Custom Fields

    $medic_banner_1 = get_field(‘medic_banner_1’);
    $medic_banner_2 = get_field(‘medic_banner_2’);
    $medic_banner_3 = get_field(‘medic_banner_3’);

    $medic_title = get_field(‘medic_title’);

    $medic_summary = get_field(‘medic_summary’);

    get_header(); ?>

    <section class=”main-content”>
    <div class=”content”>
    <div class=”row medic”>
    <h1><?php echo $medic_title; ?></h1>
    <div class=”col-xs-6 col-sm-4″ id=”heart”>” alt=”<?php echo $medic_banner_1[‘alt’]; ?>”></div>
    <div class=”col-xs-6 col-sm-4″ id=”blue_man”>” alt=”<?php echo $medic_banner_2[‘alt’]; ?>”></div>
    <div class=”col-xs-6 col-sm-4″ id=”chain”>” alt=”<?php echo $medic_banner_3[‘alt’]; ?>”></div>
    </div><!– row —– –>

    <div class=”row container-fluid medic_content”>
    <div class=”col-md-8 col-md-offset-2 medic_sum”>

    <p><?php echo $medic_summary; ?></p>

    </div><!– row —– –>
    </div><!– container —- –>

    <?php get_footer(); ?>

  • Hi @ladycole94

    Is it possible that you have a plugin conflict on your site?

    Kindly try testing the functionality with all the plugins deactivated and revert to wp stock theme and see if the problem persists.

    Hope this helps.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Some ACF Display and Some Do Not Display on the Page’ is closed to new replies.