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

# Post, Page, Product and other Post Type Search

Search in all kinds of custom post types - including Posts, Pages, Products etc..

{% 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..

![](https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FwJXfbyvOGrsbWe0JRKKI%2Fimage.png?alt=media\&token=6d2f8516-a83b-4d9b-b7ec-226a97cdc664)

### 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.

![](https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FwJXfbyvOGrsbWe0JRKKI%2Fimage.png?alt=media\&token=6d2f8516-a83b-4d9b-b7ec-226a97cdc664)![](https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FAEmyenORdLD6GAl2Ku9l%2Fimage.png?alt=media\&token=8bc0ce86-351b-4436-a4e4-dec5fbc47b64)

{% 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.ajaxsearchpro.com/general-settings/search-in-posts-and-pages.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
