-
Notifications
You must be signed in to change notification settings - Fork 28
Description
When using the Query Loop block with a taxonomy filter (e.g. restaurant terms), the filter displays all terms, regardless of whether they have any posts in the current query.
Expected Behavior
Only terms that are associated with posts in the current query should appear in the filter. This avoids empty results and improves user experience.
Current Behavior
All terms in the taxonomy are listed, even if they don’t match any posts in the current query (e.g. due to another filter like day or category).
Feature Request
Please consider adding a setting or flag (e.g. hide_empty_terms) to the Query Loop block’s term filters, so developers can choose to only show terms that are present in the filtered query.
Let me know if you'd like me to include technical details like get_terms( ..., [ 'hide_empty' => true ] ) or reference your taxonomy name.