---
title: "Pre-filtering results on a View"
date: 2026-04-23
author: "GravityKit"
link: "https://www.gravitykit.com/docs/gravityview/filter-and-sort-results/pre-filtering-results-on-a-view/"
---

There are two ways to pre-filter your View results:

## 1. By using parameters from the  shortcode

The  shortcode contains two parameters that can be used to filter your View: `search_value`and `search_field`.

**Pros:** Ability to change the value used to filter results just by changing the `search_value` parameter. This way, you will need to create only one View configuration without filters that you can embed on multiple pages, using different filters.

**Cons:** You can only filter by one value at a time. To filter by multiple values, you will need to use the Advanced Filter extension (see below).

```
[gravityview id="12" search_field="3" search_value="Alabama"]
```

```
[gravityview id="12" search_field="3" search_value="Alabama"]
```

To learn more about how to pre-filter results using these two parameters ( `search_field` and `search_value` ), check out this article: Using the  Shortcode.

## 2. By using the Advanced Filters extension 

If you have our [Advanced Filter extension](https://www.gravitykit.com/products/advanced-filter/) installed, you'll see this new section on your View Settings metabox:

![Screenshot of Advanced Filter extension filters filtering by logged-in status and the first name of a field.](https://www.gravitykit.com/wp-content/uploads/2026/04/PTTGYQ.png)
*You can configure multiple filters to precisely specify the entries you want displayed*
**Pros**: You can specify several different rules to narrow down your results.

**Cons**: The rules will to the entire View, so if you need to filter by different conditions, you'll need to create other Views for each purpose.