Skip to content

Term Query Block/Query Block Group By Term #63955

@coreyworrell

Description

@coreyworrell

What problem does this address?

Often times I need to display a list of posts grouped by taxonomy term. Example output:

Term One

  • Post that belongs to Term One and Term Two
  • Another post title

Term Two

  • Post that belongs to Term One and Term Two
  • Some post title

etc.

This can be done manually now by duplicating a Query block and using Heading blocks that are the same as the terms, but that can get out of sync very quickly. As terms are added, changed, or reordered those changes have to be made again wherever the Query block is used for them.

What is your proposed solution?

This block could make use of the existing Query block and Post Template block, by passing down the current term to those blocks as context perhaps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions