# Search Ajax

## **1: Shortcode Format**

<figure><img src="/files/xwwv6ZwnHgSX66HOFGAf" 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](/brw/basics/customize-template-in-theme-or-child-theme.md)


---

# 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://ovatheme.gitbook.io/brw/basics/shortcodes/search-ajax.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.
