diff --git a/includes/api/api-helpers.php b/includes/api/api-helpers.php index 59314a76..867adb36 100644 --- a/includes/api/api-helpers.php +++ b/includes/api/api-helpers.php @@ -3181,6 +3181,11 @@ function acf_get_attachment( $attachment ) { $sizes_id = $featured_id; } break; + case 'application': + if ( $subtype === 'pdf' ) { + $sizes_id = $attachment->ID; + } + break; } // Load array of image sizes.