# Ajax Search

## 1: Display at frontend

You can use Elementor or Shortcode to display template like here:

<div><img src="/files/EulD9aC2mFAVzEHYoLzl" alt=""> <figure><img src="/files/jBvqhaqKUiXqIlAKHZ2S" alt=""><figcaption></figcaption></figure> <figure><img src="/files/S0Gs8zhPrPudPVFGK3Pj" alt=""><figcaption></figcaption></figure> <figure><img src="/files/qic5tyCUTm1do23AmfcV" alt=""><figcaption></figcaption></figure> <figure><img src="/files/hTM6d8UpsuHFEp8EuQYC" alt=""><figcaption></figcaption></figure> <figure><img src="/files/WaSAV4NYK1YOlbr9sMNZ" alt=""><figcaption></figcaption></figure></div>

## 2: Config in Elementor or Shortcode

### Config Elementor

**Layout**: Layout 1, 2, 3, 4, 5, 6 like Archive template\
**Column:** 1,2, 3\
**Category**: Choose All or single category\
**Choose Time**: All, Current, Upcoming, Past\
**Posts Per Page**: Number event per page\
**Order By**: Title, Custom Sort, Start Date, ID\
**Order Post**: Descneding, Ascending

![](/files/-Mi0p1F6Hs7NbRTgb50h)

### Config Shortcode

```
[ovaev_search_ajax layout="1" column="col3" posts_per_page="6" order="ASC" order_by="ovaev_start_date_time" category="all" time_event="all"]

<!--
layout: 1 or 2 or 3 or 4 or 5 or 6
column: col1 or col2 or col3
posts_per_page: number items per page.
order: DESC, ASC
order_by: title, event_custom_sort, ovaev_start_date_time, ID
category: all or get by category slug. Example: slug1, slug2, slug3
time_event: all or current or upcoming or past
-->
```

## 3: Customize Template

Copy file\
Plugins/ova-events/templates/elements/ovaev\_events\_search\_ajax.php\
to\
Your-theme/ovaev-templates/elements/ folder. Note you have to create these folder.


---

# 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/fullevent/elements/ajax-search.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.
