> For the complete documentation index, see [llms.txt](https://documentation.ajaxsearchlite.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.ajaxsearchlite.com/search-shortcode.md).

# 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]'); ?>
```
