Support

Account

Home Forums Add-ons Gallery Field Gallery ajax load more

Solving

Gallery ajax load more

    • forusak

    • August 8, 2020 at 7:19 pm

    Hi,
    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.

    • rudtek

    • March 26, 2021 at 9:02 am

    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/

    • forusak

    • March 27, 2021 at 12:38 am

    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.

    • rudtek

    • March 27, 2021 at 1:34 am

    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.

    • forusak

    • March 27, 2021 at 2:10 am

    If I am correct we are talking about this plugin, and it is actually pretty alive
    https://wordpress.org/plugins/ajax-load-more/

    (damn noo, why it was sent two times)

    • forusak

    • March 27, 2021 at 2:10 am

    If I am correct we are talking about this plugin, and it is actually pretty alive
    https://wordpress.org/plugins/ajax-load-more/

    • rudtek

    • March 27, 2021 at 2:12 am

    that’s the main plugin, but then you need to install the extension: https://wordpress.org/plugins/ajax-load-more-for-acf/

    • forusak

    • March 27, 2021 at 2:14 am

    Ah right, actually this one seems familiar, it is probably the one I mentioned at the beggining (the huge one).

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.