Home › Forums › Front-end Issues › ACF not displaying on front-end submitted post › Reply To: ACF not displaying on front-end submitted post
Not sure why, but I was able to get it working by using Field Keys. So for others that may have this issue… I replaced my original code for each radio button in my template file from:
if (get_field('project_prepared')) {
$field = get_field_object('project_prepared');
echo '<li>'.$field['label'].' <span>'.$field['value'].'</span></li>';
}
To:
$field_key = "field_57edca4cb58d1"; // project_prepared
$field = get_field_object($field_key);
if( $field ) { echo '<li>'.$field['label'].' <span>'.$field['value'].'</span></li>'; }
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.