acf
acf copied to clipboard
Gallery Field does not return non-images files
In ACF, the gallery field accepts any type of file (yes, the name is misleading ...) and not only images.
The problem is that your Gallery field will only the files which are images as you can see here.
https://github.com/corcel/acf/blob/8091c7caf689d06ebb5cbeb6391357cc0ebf5d93/src/Field/Gallery.php#L43