Hiding empty facets on post lists

The GFI Theme now hides facets on post lists that do not display any terms.

Facets are selectors (checkboxes, dropdowns) for taxonomy terms (tags, categories, production platforms) in lists of posts such as blog posts, resources, or entries in the solutions database.

As an example, consider the blog page on gfi.org. The “tags” checkbox facet does not appear if there are no tags on any blog posts. Note that tags can be excluded in the FacetWP settings in the admin panel, allowing certain tags to be hidden on specific facets.

Before:

After: