Home › Forums › Front-end Issues › ACF Fields suddenly stopped showing › Reply To: ACF Fields suddenly stopped showing
I have had a look into this and it seems I am using an if statement that has since been changed since PHP V5.3.
I other words in PHP V5.3 this code shows all the ACF field data
if(get_field('name'))
$field_name = "name";
if(empty($field_name['name'])){
echo " ";}
else
....
However if you upgrade from 5.3 upward this statement stops the PHP fields showing … take the ‘if’ statement out it all shows again.
So it seems I need to upgrade this ‘if’ statement somehow
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.