Support

Account

Home Forums General Issues ACF data not showing in the front without a manual post update. Reply To: ACF data not showing in the front without a manual post update.

  • Thanks John,

    I approached this a different way
    I changed the Choices from value : Label to just Choice Value

    Part Source:
    sh : SECOND HAND
    oem : OEM
    new : NEW

    Part Source:
    SH
    OEM
    NEW

    Used Admin Columns Pro 100 products per page, 15 pages – and bulk edited changing the value of the part source to “SH” along with other choice values “OEM” , “NEW”.
    Then in my PHP added the conditional on the output.

     global $product;
      $id = $product->get_id();
      $partsource = get_field ('part_source', $id);
    
      if( $partsource == 'SH') {
        echo 'SECOND HAND';
      } else {
        echo esc_attr($partsource);
      }