Using the Post Filter on the Front End

On default WordPress pages that show lists of posts you can filter that list by tag (term) group.1 Simply append the query parameter “term_group” with the group’s ID to the URL of that page. Example:

You can also filter by a term and show only posts that use this term in a particular group. In that case use “term_group” and “term_id”. Example:

If you want to filter by tag and group, you alway have to use both “term_group” and “term_id”. It is not sufficient to use only “term_group” on a tag archive page (…/tag/my-tag/?term_group=3 won’t work).

Please note that the first parameter is always appended with a “?”, while all following parameters use a “&”.

If you need to filter just by a term (tag), you simply use the standard Tag page that is part of every theme.

If the filtered list of posts is empty, you can try the tools on the Settings page under the Support tab.

  1. That filter won’t be effective on custom lists created by other themes or plugins or when they modify the database query.