I’m using the Add On Gallery Field on my site and was wondering if you can limit the images that come up in the media library to just the images that have been uploaded to that particular custom post?
At the moment it’s brining in the images attached to the custom post plus it lists off all the other images below that sit in the current Media Library which is quite a lot.
Let me know if that doesn’t makes sense.
Is there an easy way to make these changes? I can see the action acf/create_field reference that adds the “$field[‘library’]”. If you have a reference of what needs to be done… or if it’s allot more difficult, then do you have an ETA for this change.
I have a live project, that I need a solution for. The new WP 3.5 media uploader, doesn’t seem to be accepting user capability limits the same way. So I’m hoping this can be a solution instead.
I appreciate the point in that direction. I see what you mean… it’s not that simple. I wish I was more experienced with js, I might be able to do this fix for you.
It’s a shame that we have to use JS to make changes to the Media Uploader. I’m not sure why they made these changes to the WP 3.5 media uploader, but my old fixes where I could limit the media loop using user capabilities no longer work.
Let me know if/when the gallery addon has this feature added, any ETA yet?
I hate to revive this thread but I have a site I need to take to production soon. If it helps anyone, in the meantime I used this plugin (github – Limit Upload) to limit the number of uploads which works for me as of WP 3.8.
The topic ‘Limit Gallery Field Images’ is closed to new replies.
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!
© 2022 Advanced Custom Fields.