Support

Account

Home Forums General Issues New to ACF and can't get fields to show

Solving

New to ACF and can't get fields to show

  • Hi Guys, I have recently taken over a website that has been built with ACF. I haven’t use ACF before and I have been having some trouble getting things to work smoothly.

    I have updated the ACF as its last update was 2016.

    I am trying to either add a second button into an existing tab in a field group or/and create a new tab in a field group.

    I have added both options into the field group which shows up in the page editor and I have created the content for it and it does not show up at all on the actual website.

    I know it will probably be a really simple fix I am overlooking but I just can’t seem to get my head around it atm. Would appreciate some help.

    Code relating to the problem – it is the brochure that is not showing up.

    <?php get_header(); ?>

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    <section class=”speakToAnExpert”>
    <div class=”container”>
    <div class=”row tableClass”>
    <div class=”col-xs-12 col-md-7 speakToAnExpert__contentColumn table-cellClass vertical-middle”>
    <h2 class=”speakToAnExpert__title”>
    <?php the_field(‘freight_expert_heading’); ?>
    </h2>
    <p class=”speakToAnExpert__content”>
    <?php the_field(‘freight_expert_content’); ?>
    </p>
    “>
    <?php the_field(‘freight_expert_button_text’); ?>

    </div>
    <div class=”col-xs-12 col-md-5 speakToAnExpert__imageColumn table-cellClass vertical-bottom”>
    /assets/images/expert.png” width=”331″ height=”352″ alt=”Speak to an expert”>
    </div>
    </div><!– end .row –>
    </div><!– end .container –>
    </section><!– end .speakToAnExpert –>

    <section class=”brochure”>
    <div class=”container”>
    <div class=”row tableClass”>
    <div class=”col-xs-12 col-md-7 brochure__contentColumn table-cellClass vertical-middle”>
    <h2 class=”brochure__title”>
    <?php the_field(‘ heading_brochure’); ?>
    </h2>
    <p class=” content_brochure”>
    <?php the_field(‘ content_brochure’); ?>
    </p>
    “>
    <?php the_field(‘ freight_expert_button_text2’); ?>

    </div>
    </div><!– end .row –>
    </div><!– end .container –>
    </section><!– end .brochure –>

    If someone could advise me where I am going wrong that would be great, and also some advice on how to place the second button into the ‘speaktoanexpert’ section

    Thank you guys

  • Can you export the field group so i can test it on my end.
    https://www.useloom.com/share/7bd9c7f03e8c4cf69183ca93990c7a6a

    If you can upload the .xml file take a screenshoot of the field group

  • This reply has been marked as private.
Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘New to ACF and can't get fields to show’ is closed to new replies.