Home › Forums › Front-end Issues › File filed skip media library › Reply To: File filed skip media library
To exclude files from the media library display you must create a pre_get_posts() filter the removes them from the list.
I don’t remember all of the details of doing this,, but it will require having some way to determine that the files were uploaded through the specific form. Possibly by creating a custom field for files that is set.
There are many examples of doing this, for example this one only shows files uploaded by the current user https://wordpress.stackexchange.com/questions/76771/how-can-i-hide-media-library-images-from-general-users
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.