Support

Account

Home Forums Front-end Issues ACF not displaying on front-end submitted post

Helping

ACF not displaying on front-end submitted post

  • I’m using Gravity Forms for site members to creating a CPT post from the front-end. My ACF are displaying correctly on the front-end except the radio button fields — which fail to display their values. However, they do display in the back-end and when I click the “Update” button they will finally appear on the front-end.

    What do I need to do to make this work correctly?

  • 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>'; }
    
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.