Home › Forums › Feature Requests › Images uploaded to catgory › Reply To: Images uploaded to catgory
https://codex.wordpress.org/Plugin_API/Filter_Reference/ajax_query_attachments_args
You would need to get the current post id, then get the category the post is in and then set the parent__not_in value to the array of the post IDs in that category.
See my comment on this topic about the information that ACF send in the AJAX request
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.