is there an ajax load more solution for gallery already? The closest I could get was a plugin for jquery load more, and ajax plugin which one was huuuge and very limited as free.
I would say that such thing could be built in already, it is quite important part of galleries.
I’d love this if it’s possible!
If you are talking about having a load more feature on the front end of the site. ACF does not have any code for the front end for fields and you need to build. There is an example of this here https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/gallery/
Thank you, looks like what I was looking for. It’s just way too robust plugin for many other things.
Smaller solution would be welcomed.
John, thanks for sending that option. I saw it too but it has not been updated in over a year. I tend to also agree, it’s doing a lot when I only need a little. I’m going to keep searching for something a bit more bespoke.
BTW thanks for all you do with this plugin! I couldn’t do what I do without it!
It is was me I would likely build something myself using jQuery and AJAX and either have a button to show more or build my own infinite scroll for it. I don’t have any examples or I would share them. I don’t generally work with gallery fields and there are several pieces that all need to work together to build something, probably would be a couple of hours work.
I do have an old example of a load more for a repeater that uses a button https://github.com/Hube2/acf-dynamic-ajax-select-example/tree/master/repeater-ajax-load-more, the principle is the same. The only difference with infinite scroll is that you need to detect when the page is scrolled far enough to trigger the request instead of using the link.
Don’t thank me for the plugin, I’m just another developer like you that uses ACF for nearly everything I do and I could not do what I do without it either.
that’s the main plugin, but then you need to install the extension: https://wordpress.org/plugins/ajax-load-more-for-acf/
Ah right, actually this one seems familiar, it is probably the one I mentioned at the beggining (the huge one).
You must be logged in to reply to this topic.
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!