# Search Shortcode

![Search shortcode and the PHP version for themes](/files/1ANkdwh8UcvnW6VE6XnW)

The search shortcode can be used within post/page or any custom post type contents, as well as site headers, footers or any other template parts.

### Regular shortcode

Use this shortcode within posts/pages or any custom post type contents, [menu items](/search-shortcode/shortcode-as-a-menu-item.md), template editor blocks or in any widgets, which support shortcodes.

`[wpdreams_ajaxsearchlite]`

### Shortcode for code/template files directly

The following shortcode is to be used in template/plugin files directly.

```
<?php echo do_shortcode('[wpdreams_ajaxsearchlite]'); ?>
```


---

# 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://documentation.ajaxsearchlite.com/search-shortcode.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.
