# Showing featured products first

To display featured products over non-featured within the results, a [priority group](https://documentation.ajaxsearchpro.com/result-priority-settings/priorities-by-rules-priority-groups) needs to be created. This tutorial will go through all the steps to achieve that.

Under the Ajax Search Pro menu, click on the `Priorities` submenu, then on the `Add New` button.

<figure><img src="https://1744076133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M9rmHbZfTKVQ7YzbIZL%2Fuploads%2FkiGfQd5h3uckVlTgEkn6%2Fimage.png?alt=media&#x26;token=db4f34b8-f4fa-4592-aed2-b3f2b3e58296" alt="" width="375"><figcaption><p>Add new priority group</p></figcaption></figure>

A popup will open. Set the following values first (see screenshot below):

* Ruleset name: **WooCommerce Featured**
* Set results priority matching the rules to: **101**
* Click on the **New rule** button afterwards

<figure><img src="https://1744076133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M9rmHbZfTKVQ7YzbIZL%2Fuploads%2FG1XSv4qLFhVCQizrJAp1%2Fimage.png?alt=media&#x26;token=b1da839d-5470-42e8-b71b-86035ac2f9e3" alt="" width="375"><figcaption></figcaption></figure>

Set the following Rule values (see screenshots below):

* Rule name: **Featured first**
* Rule type: **Taxonomy term**
* Operator: **IN**
* Select taxonomy terms: **Product visibility**
* In the search terms enter **featured**, and select it
* Click **Save rule** button
* Click **Save**

<figure><img src="https://1744076133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M9rmHbZfTKVQ7YzbIZL%2Fuploads%2FqIyHjPe1kw6qfejKJqNE%2Fimage.png?alt=media&#x26;token=16e3448e-2823-4231-a881-7758d0b25f7c" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="https://1744076133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M9rmHbZfTKVQ7YzbIZL%2Fuploads%2F4YN6Oz285HatFVOyOQb2%2Fimage.png?alt=media&#x26;token=168cacd5-8e52-42c9-96e2-d9c77a453b28" alt="" width="375"><figcaption></figcaption></figure>

After that don't forget to click the Save Groups button, and it's done.

The plugin will now display featured products first in the search results whenever they match.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledgebase.ajaxsearchpro.com/miscellaneous/woocommerce/showing-featured-products-first.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
