---
title: "How to always display featured entries, regardless of search results"
date: 2026-04-23
author: "GravityKit"
link: "https://www.gravitykit.com/docs/gravityview-pro/featured-entries/how-to-always-display-featured-entries-regardless-of-search-results/"
---

If you would like to always show featured entries, even if the current View search would exclude the entries from being shown, you can do so by adding the following code:

```
/**
 * Allow override of default behavior, which is to respect search queries.
 *
 * @param boolean $always_show_featured_entry If returned true, featured entries will be shown even if the search doesn't match the entry
 */
add_filter('gravityview_featured_entries_always_show', '__return_true');
```

```
/**
 * Allow override of default behavior, which is to respect search queries.
 *
 * @param boolean $always_show_featured_entry If returned true, featured entries will be shown even if the search doesn't match the entry
 */
add_filter('gravityview_featured_entries_always_show', '__return_true');
```

Read here how to add these code samples to your website: [Where to put code samples.](https://www.gravitykit.com/docs/gravityview/customizing-your-views/where-to-put-code-samples/)