Skip to content

Term filter shows all terms, even those not in current query results #24

@sunmorgn

Description

@sunmorgn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions