Viewing 4 replies - 1 through 4 (of 4 total)
  • I have also faced same issue.It may be occurred due to wordpress update.Last night when i worked last time everything worked fine but now i can see some fields does not work.My client updated wordpress to 4.4.1.So it may be a reason.What will be the solution?

    I have solved the issue.Problem is not on wordpress update.You may did wrong on another place like if you run any loop first you end it using <?php endwhile; wp_reset_postdata(); ?> for while loop and <?php endforeach; wp_reset_postdata(); ?> for for loop. then all will work fine.if you do not end them perfectly it can not execute the query below it.

    Another thing you may try is

    <?php if( get_field(‘bottom_title’) ): ?>
    <?php the_field(‘bottom_title’); ?>
    <?php endif; ?>

    Thread Starter natalie_davis

    (@natalie_davis)

    Hello,

    Thanks for you help. 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:

    // 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”><img src=”<?php echo $medic_banner_1[‘url’]; ?>” alt=”<?php echo $medic_banner_1[‘alt’]; ?>”></div>
    <div class=”col-xs-6 col-sm-4″ id=”blue_man”><img src=”<?php echo $medic_banner_2[‘url’]; ?>” alt=”<?php echo $medic_banner_2[‘alt’]; ?>”></div>
    <div class=”col-xs-6 col-sm-4″ id=”chain”><img src=”<?php echo $medic_banner_3[‘url’]; ?>” 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>
    </div><!– row —– –>
    </div><!– container —- –>
    </section>

    <?php get_footer(); ?>

    please put fresh code.the code you put it converts all your php tags semicolon to html value.i hope i can give you better solution.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Some ACF Display and Some Do Not Display on the Page’ is closed to new replies.