Skip to content

Conversation

@coreyworrell
Copy link
Contributor

@coreyworrell coreyworrell commented Sep 9, 2025

What?

This increases the taxonomy limit from 10 to 100 unlimited (-1).

Why?

Currently if your site has over 10 public taxonomies, the Terms List block taxonomy dropdown only shows the first 10, not allowing you to show terms from any other taxonomies.

How?

Adds per_page: 100 to the query.

Testing Instructions

  1. Register at least 11 different, public taxonomies.
  2. Open a post or page.
  3. Insert a Terms List block.
  4. Try to select a taxonomy and notice some are missing.

@github-actions
Copy link

github-actions bot commented Sep 9, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: coreyworrell <[email protected]>
Co-authored-by: Mamaduka <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@Mamaduka Mamaduka added [Type] Bug An existing feature does not function as intended [Block] Categories Affects the Categories Block labels Sep 10, 2025
Co-authored-by: George Mamadashvili <[email protected]>
Copy link
Contributor

@priethor priethor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @Mamaduka's suggestion; it looks good to me with an unlimited-size query.

As a next step, we should consider lazy loading the subsequent pages in batches, now that core data supports paginating for taxonomy terms.

priethor

This comment was marked as duplicate.

@Mamaduka Mamaduka merged commit 3119708 into WordPress:trunk Sep 10, 2025
68 of 69 checks passed
@github-actions github-actions bot added this to the Gutenberg 21.7 milestone Sep 10, 2025
@Mamaduka
Copy link
Member

Sorry, @priethor!

I just copy/pasted the contributors list and realized you were not listed after the merge 🙇

adamsilverstein pushed a commit to adamsilverstein/gutenberg that referenced this pull request Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Categories Affects the Categories Block [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants