Showing featured products first

Displaying featured products first in search results

To display featured products over non-featured within the results, a priority group 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.

Add new priority group

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

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

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.

Last updated