Home › Forums › ACF PRO › Help request with strange behaviours › Reply To: Help request with strange behaviours
Strange behaviour are:
– seems to work with post already created but not with new ones
– same code for showing the fields, but in some post someone shows and some not
– the code
if( !empty($pf_studi) ){
echo '<div class="one_third">';
echo '<h4>Studi</h4>';
echo '<div class="description">';
echo get_field('studi');
echo '</div>';
echo '</div>';
}
should shows only fields with some datas, but in some posts shows also empty fields.
Really don’t know if it’s something about AFC or maybe wrong code written by me
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.