-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
[Block] Terms QueryAffects the Terms Query BlockAffects the Terms Query Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
In Terms Query Block, Max terms does not work on pages for non-hierarchical taxonomies : all terms are always displayed.
Step-by-step reproduction instructions
- Start a new playground instance https://playground.wordpress.net/#{}
- In the admin, quick edit Hello world post and add 3 tags
- Pages > Add page > Add block -> Terms Query -> Name variation
- In the block panel set :
- Taxonomy = Tags
- Max terms = 2
- Publish the page
- Visit the new page
Results
The editor displays 2 tags, but the page displays 3.
#74130 fix the problem.
Screenshots, screen recording, code snippet
Environment info
- Wordpress 6.9 and trunk
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Block] Terms QueryAffects the Terms Query BlockAffects the Terms Query Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
✅ Done