# Search Ajax

## **1: Shortcode Format**

<figure><img src="https://4082525133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa2OkFafBNY1uvQO4naAL%2Fuploads%2FwypuDnyRRQRPNR6a8w3j%2FScreenshot%202025-03-04%20at%2011.56.01.png?alt=media&#x26;token=88e2e77a-18bb-42c1-a894-757498fbbbc0" alt=""><figcaption></figcaption></figure>

```
[ovabrw_search_ajax fields="product-name|category|pickup-location|dropoff-location|pickup-date|dropoff-date|product-tags|quantity|price-filter" field_columns="4" position="top" show_time="yes" show_results_found="yes" show_sort_by="yes" card_template="card1" posts_per_page="6" columns="3" orderby="date" order="DESC" pagination="yes" /]
```

**Some params**:

**fields:** Display theses fields in search form. "product-name|category|pickup-location|dropoff-location|pickup-date|dropoff-date|product-tags|quantity|price-filter"

**field\_columns:** Number column of search form

**position:** insert value top or left or right

**show\_time:** Allow choose hour in Input Calendar. Insert value yes or no

**show\_results\_found:** Display text like "10 Results Found (Showing 1-6)" at left top of result area. Insert value yes or no.

**show\_sort\_by:** Display sort dropdown at right top of result area. Insert value yes or no.

**card\_template:** Supports 6 cart templates. You can insert these value: card1, card2, card3, card4, card5, card6

**posts\_per\_page:** Number products per page. Insert number.

**columns:** Number columns in results area

**orderby:** Insert some value date,

**order:** DESC or ASC

**pagination:** Display pagination in result area. You can insert value yes or no

**default\_category**: search default in this category. Insert slug of category. Example car

**incl\_category**: Only search in these category. Include some term id of category. example 12|20|30

**excl\_category**: exclude search in these category

**custom\_taxonomies:** Insert slug of custom taxonomies. Example tax1|tax2

## 2: Customize Template

[Read here to know how to customize template in child theme](https://ovatheme.gitbook.io/brw/basics/customize-template-in-theme-or-child-theme)
