# Post, Page, Product and other Post Type Search

{% embed url="<https://youtu.be/UnokRaEFsSE>" %}
Searching Custom Post Tyeps with Ajax Search Pro
{% endembed %}

```
Search Sources -> Post Type Search -> Search in custom post types
```

By default the plugin is configured to return Posts and Pages as results. Use the **Search in custom post types** drag and drop option to change that.

Custom post types (or CPT as shorthand) are **WooCommerce Products**, Portfolio Items, Books, Tutorials etc..

![](/files/MbnnzDbWwZM4nZof4gei)

### Regular and Index Table engines

#### Regular Engine

When using the [Regular Engine](/general-settings/search-engine.md), then choosing the post types here is sufficient, no other configuration is required.

#### Index Table Engine

When using the [Index Table engine](/index-table.md), then make sure the selected post types on the search instance settings are also selected and indexed on the Index Table settings.

![](/files/MbnnzDbWwZM4nZof4gei)![](/files/nOBqGH5PfSiApxhcNBjL)

{% hint style="info" %}
For each search instance you can choose different post types to search for - but make sure all of these are also indexed on the index table settings.
{% endhint %}


---

# 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/general-settings/search-in-posts-and-pages.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.
