Home › Forums › General Issues › 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
You must be logged in to reply to this topic.
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!
Plugin boilerplates can do some of the heavy lifting during initial development. We look at four options to speed up your plugin creation. https://t.co/ZtMsdBxAHw
— Advanced Custom Fields (@wp_acf) June 5, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.