# Search Shortcode

![Search shortcode and the PHP version for themes](https://3760515715-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MOpzRddcYVNgkLN4M3d%2Fuploads%2FqgmNZQ3Rod8i6hZMsuqo%2Fimage.png?alt=media\&token=a42f63a2-4d62-455e-908b-f4735366465f)

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](https://documentation.ajaxsearchlite.com/search-shortcode/shortcode-as-a-menu-item), 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]'); ?>
```
