# Search Shortcodes

There are four different shortcodes available for each search instance.  Each of these shortcodes can be placed into any post/page or custom post type content or into the theme files.

## Search box shortcode

![](/files/enVH3CUoTenUxKWbnHZN)

This is the most used, all-around shortcode. It places the search form anywhere on your site. This is the shortcode you are looking for in most cases.

### Format:

`[wd_asp id=1]`

### Parameters:

* id (integer) - the id of the search instance

## Settings shortcode (advanced use)

![](/files/SnjR5Ix4tbDtxYsOG7ba)![](/files/BMT6SINrEXQUVWXVFCKM)

Shortcodes for placing the settings box elsewhere, but on the same page where the search shortcode is.

### Format:

`[wd_asp_settings id=1 element='div']`

### Parameters:

* id (integer) - the id of the search instance

## Results shortcode (advanced use)

![](/files/BjGBXoTn9VhVTlXtCAa8)![](/files/JTfvA8QTuT6oyUzExjaO)

Shortcodes for placing the results box elsewhere, but on the same page where the search shortcode is.

{% hint style="warning" %}
The results shortcode is **not made** to be used as a custom results page! It is only to position (detach) the **live search** results list away from the search bar, on the **same page**.
{% endhint %}

### Format:

`[wd_asp_results id=1 element='div']`

### Parameters:

* id (integer) - the id of the search instance

## Two column shortcode (optional)

![](/files/rD6ZrYKc2t8xyD80s2zU)![](/files/4O9QaJIyUHiQHGMmNUlK)

Will place a search box (left) and a result box (right) next to each other, like the one on the demo front page.

### Format:

`[wd_asp_two_column id=1 search_width=50 results_width=50 invert=0 element='div']`

### Parameters:

* id (integer) - the id of the search instance
* search\_width - (integer) the search bar width (in %, not px)
* results\_width - (integer) the results box width (in %, not px)
* invert - (0 or 1) inverts the search and results box position from left to right


---

# 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.ajaxsearchpro.com/getting-started/search-shortcodes.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.
