Skip to content

Query Block: cannot change number of items for "default" query type #77886

Closed

Description

@bradhogan

Description

This might be more of a feature request than a bug. Let's say you want your normal default reading settings to 10 (Admin > Settings > Reading > Blog pages show at most), but you create a author template and you want to show some info about the author and just a few posts from this author. You cannot do this without custom code. I should be able to drop in the query block on the author template and adjust the number of items to show while still using the default query type.

Step-by-step reproduction instructions

  1. set (Admin > Settings > Reading > Blog pages show at most) to 10
  2. view blog index page and see 10 posts
  3. create template in site editor for "author archives"
  4. add query block to author template
  5. see there is no option to change query results to [anything]

Screenshots, screen recording, code snippet

No response

Environment info

  • wp 6.9.4
  • gutenberg 23.01
  • mac
  • chrome

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Activity

  1. added
    [Type] BugAn existing feature does not function as intended
    on May 1, 2026
  2. Mamaduka commented on May 6, 2026

    @Mamaduka
    Member

    Default type refers to the default WP query and inherits all its properties, including per_page. I think this has been discussed a couple of times, though I can't find the issue.

    cc @mikachan, @ntsekouras

  3. mikachan commented on May 14, 2026

    @mikachan
    Member

    Here are some related issues and discussions:

    I haven't had a chance to look at this for a while, but I agree that this should be improved. There's another issue here with a mockup, maybe we could work towards something like this next: #63660

  4. youknowriad commented on Sep 25, 2026

    @youknowriad
    Contributor

    Thanks for the report! As @Mamaduka explained, the default query type inherits the main query, including posts per page, so this is a feature request, and it's already tracked in #41548. Closing as a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Technical FeedbackNeeds testing from a developer perspective.[Block] Query LoopAffects the Query Loop Block[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions