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

Blocks: Cannot change display settings on post type "List" blocks #1388

Open
ryelle opened this issue Oct 8, 2024 · 0 comments
Open

Blocks: Cannot change display settings on post type "List" blocks #1388

ryelle opened this issue Oct 8, 2024 · 0 comments
Labels
[Component] Blocks All custom blocks (Speakers, CrowdCast, Live Schedule, etc) [Type] Bug

Comments

@ryelle
Copy link
Contributor

ryelle commented Oct 8, 2024

The Sponsors List block seems to only show 10 sponsors for a particular category "Mini Sponsor" and we have 15 published sponsors in the category. If I order new to old I can see the other 5. The block seems to have a limit of showing only 10. Had a look all over for an option to change this limit but can't seem to find it.

Reported in slack by limecanvas.

Originally this could be found in the block toolbar as described here #879 (comment) — but it looks like the Query Loop block has been updated and the settings moved. They're now in the sidebar:

Image

To reproduce

  1. Add any customized query loop, Sponsors List, Sessions List, etc
  2. Try to change the number of items displayed
  3. You can't ❌

Expected behavior

You should be able to change the number of results in the list.

Likely this is because we set a subset of allowedControls in these blocks, and since WordPress/gutenberg#58207, the count and offset controls use this list. Each block should get postCount, offset, and pages added to that list in block.json.

This applies to all the Query Loop variations

  • Organizers List
  • Sessions List
  • Sponsors List
  • Speakers List
@ryelle ryelle added [Component] Blocks All custom blocks (Speakers, CrowdCast, Live Schedule, etc) [Type] Bug labels Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Blocks All custom blocks (Speakers, CrowdCast, Live Schedule, etc) [Type] Bug
Projects
None yet
Development

No branches or pull requests

1 participant