Pagination Elements - add optional Ajax loading

What do you think about adding an optional Ajax loading option to the pagination elements?

Instead of a row with page numbers you could have a “load more” button that once clicked would load the next batch of posts/comments. There could also be an option to automatically load the next batch of posts/comments as you scroll down.

It’s too late for this stuff now but it may be a nice improvement for a future update.

1 Like

That would be awesome. I’d love if we had something like this. Considering how much is going on inside the looper system, we’d really have to think about how to make all that work to make it feel consistent.

It’d be a good candidate to explore with the WordPress JSON API. We might have to introduce it as a new type of looper that is a bit more limited (since rendering would ideally happen on the front end) but allows for infinite loading.

1 Like

Sounds good. You’ll know best how to implement it :+1:

Thanks! We’ll certainly be keeping it in mind moving forward.

2 Likes

@charlie
is that possible today? :slight_smile:

thanks in advance

2 Likes

It is not, but a system for this was how I was envision us integrating FacetWP and other plugins and libraries that render dynamically in the frontend. It might need to come after a template engine integration for certain integrations, but it is definitely something I’d love to see in Cornerstone.

3 Likes

Hi Charlie, thank you so much for your response! Great that you keep that in mind. it would be really awesome if that were possibl including the integration of facetwp and co :slight_smile:
thanks for your efforts!

1 Like