Support

Account

Home Forums ACF PRO How to get ACF data in ajax ? Reply To: How to get ACF data in ajax ?

  • You are not returning anything from the ajax function usually it would look something like

    
    function retrive_result () {    
       $result = get_field('caratteristiche_ariete', 'option');  //this is my acf option field.  
       echo json_encode($result);
       exit;
    }