---
title: "Filter"
date: 2020-11-17
author: "nK"
---

# Filter

Shows the categories of the items as buttons or a dropdown. Clicking one reloads the gallery with only that category; **All** shows everything.

![](https://staging.visualportfolio.com/wp-content/uploads/2024/07/Shot-2024-07-15-at-20.12.02-1024x582.png)![](https://staging.visualportfolio.com/wp-content/uploads/2024/07/Shot-2024-07-15-at-20.12.02-1024x582.png)    ## Settings

SettingValuesDefaultNotes**Style**Minimal, Classic, DropdownMinimalMinimal: text links. Classic: buttons. Dropdown: a select**Display Count**on / offoffThe number of items per category next to each name**All Button Text**TextAllClearing it removes the All item![](https://staging.visualportfolio.com/wp-content/uploads/2024/07/Shot-2024-07-15-at-20.13.59-1024x582.png)![](https://staging.visualportfolio.com/wp-content/uploads/2024/07/Shot-2024-07-15-at-20.13.59-1024x582.png)    ## Where the categories come from

Content sourceFilter itemsPostsTerms of the post type’s taxonomies whose name contains `category`, plus `product_cat` (WooCommerce) and `jetpack-portfolio-type`. For Projects this is Portfolio Categories. Tags and other taxonomies are added in **Settings → General → Filter Taxonomies** (comma-separated slugs, for example `portfolio_tag,product_tag`)MediaThe **Categories** typed into each image’s settings. Type a name and press Enter; the same list is offered on the other images. Categories are matched by slug, so “Cats” and “cats” are one categoryTaxonomies (**Pro**)Not supported; the filter is not printedSocial (**Pro**)Imported items carry no categories; the filter shows only AllEmpty terms are left out. When no term qualifies, the filter is not printed at all. Term order follows the taxonomy order, so a term-ordering plugin is honored. Counts are taken from the unfiltered query of the block, so a block limited to one category counts only its own items.

![](https://staging.visualportfolio.com/wp-content/uploads/2024/07/Shot-2024-07-15-at-20.19.27-1024x600.png)![](https://staging.visualportfolio.com/wp-content/uploads/2024/07/Shot-2024-07-15-at-20.19.27-1024x600.png)    ## Standalone filter

For page builders, `[visual_portfolio_filter id="123" type="minimal" align="center" show_count="false" text_all="All"]` prints the filter of Saved Layout 123 anywhere on the page. See [Saved Layouts and Shortcodes](https://staging.visualportfolio.com/docs/saved-layouts-and-shortcodes/).