# How to display posts Grouped by Category Or Term ?

You can display posts grouped under their categories or terms — for example, a list of products organized by product category.

1. Enable the **Group By** option on the list. The available choices change automatically based on the selected post type — if it supports categories or tags, you’ll see them here.
2. Add the `[groups]` shortcode to your template to output each group’s heading and the posts within it.

Inside the group template you can use group tags such as `[group_title]` and `[group_url]` to render each group’s information.

Source: https://w4dev.com/docs/w4-post-list/how-to-display-posts-grouped-by-category-or-term/
