Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add load more button in Query block #31446

Open
ntsekouras opened this issue May 4, 2021 · 17 comments
Open

Add load more button in Query block #31446

ntsekouras opened this issue May 4, 2021 · 17 comments
Labels
[Block] Query Loop Affects the Query Loop Block [Block] Query Pagination Affects the Query Pagination Block - used for pagination within the Query Loop Block [Type] Enhancement A suggestion for improvement.

Comments

@ntsekouras
Copy link
Contributor

ntsekouras commented May 4, 2021

What problem does this address?

A load more button could be useful in a Query block in cases that a user doesn't want to have full pagination of the results through QueryPagination blocks.

This functionality should take into account the query parameters of the currently used Query block and should have at least for start an option of how many posts to load when clicked.

@ntsekouras ntsekouras added [Type] Enhancement A suggestion for improvement. [Block] Query Loop Affects the Query Loop Block labels May 4, 2021
@carolinan carolinan added the [Block] Query Pagination Affects the Query Pagination Block - used for pagination within the Query Loop Block label May 6, 2021
@edwinho89
Copy link

+1 to this. Was comparing with Blog Post Block which had the load more button, so perhaps an option to select either one of them?

@dkjensen
Copy link

+1

@dkjensen
Copy link

@ntsekouras I ended up having to put together a workaround but would love to see this incorporated natively at some point

https://gist.github.com/dkjensen/5190c554420ea2f19987a3f31ac95785

@ntsekouras
Copy link
Contributor Author

Thanks @dkjensen ! It would be great if you opened a PR here and try this out! This way more contributors will be involved and things will move forward.

@jffng
Copy link
Contributor

jffng commented Apr 27, 2022

cc @scruffian I was chatting with @beafialho about some of our theme designs, and thought this would still be useful.

@mateuswetah
Copy link
Contributor

Would love to see this too. I imagined it would make sense to be a variation of the current pagination block

@cuemarie
Copy link

+1 I think this would be a great addition to the Query block - offering a nice alternative to the Pagination block.

@marianearchimbaud
Copy link

marianearchimbaud commented Aug 26, 2022

+1! A user asked for this feature on a live chat session some weeks ago too

@donalirl
Copy link

donalirl commented Sep 2, 2022

+1

@i11za
Copy link

i11za commented Dec 19, 2022

+1 user request

1 similar comment
@kuropixel
Copy link

+1 user request

@KelseyMcAuley
Copy link

+1

@mateuswetah
Copy link
Contributor

Not sure if related, but maybe this will be possible with the proposed Interactivity API.

@wpexplorer
Copy link

+1 ;)

@i11za
Copy link

i11za commented May 30, 2023

+1 user request

@Jaccuse
Copy link

Jaccuse commented Jul 21, 2023

+1

@hannahmwool
Copy link

+1

I have been using @dkjensen workaround and it works great but doesn't work if the "Inherit query" is enabled on the query loop block because it ignores all Get requests. Working on a workaround but this would definitely be amazing to be added officially. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Query Loop Affects the Query Loop Block [Block] Query Pagination Affects the Query Pagination Block - used for pagination within the Query Loop Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests