Home › Forums › Front-end Issues › Some ACF Display and Some Do Not Display on the Page › Reply To: Some ACF Display and Some Do Not Display on 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:
<?php
/*
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>
</div><!– row —– –>
</div><!– container —- –>
</section>
<?php get_footer(); ?>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.