Support

Account

Home Forums General Issues ACF File – Preview of document Reply To: ACF File – Preview of document

  • Old one but here’s a quick way to do this:

    add_filter( 'acf/load_attachment', 'custom_load_attachment', 10, 3);
    function custom_load_attachment ($response, $attachment, $meta){
      if ($response['type'] == 'image'){
        $response['icon'] = $response['sizes']['thumbnail'];
      }
      return $response;
    }