# Searching posts, pages (or any CPT) by specified keywords only, nothing else

In case you don’t want to search titles, content, excerpt or anything at all, only within keywords you specify for each post, it is actually possible.

There is an Ajax Search Pro custom meta box under each post on the editor screen.

If you can’t see this box, make sure it’s enabled for this post type and set to visible: [Ajax Search Pro meta box on editor screen](https://documentation.ajaxsearchpro.com/other-useful-things/meta-box-on-post-editor-screen)

## Configuring the search

By default the plugin looks in titles, content and excerpt as well. First you need to disable all these options on the *General Options -> Sources* panel. However in order for the plugin to work, at least one field must be enabled, therefore make sure that the *Search in post (and CPT) IDs?*&#x6F;ption is enabled.

### Step 1: Make sure you have the correct post types enabled

![](https://wp-dreams.com/wp-content/uploads/2017/09/28/admin/14922/admin/keyword-search-only-1-min.jpg)

### Step 2: Disable everything, but search in CPT IDs

This step is to make sure that at least on field is enabled, otherwise the plugin might skip the search process completely.

![](https://wp-dreams.com/wp-content/uploads/2017/09/28/admin/14922/admin/keyword-search-only-2-min.jpg)

### Step 3: Make sure the Generic front-end filters are unchecked or disabled

* If you don’t need Front-end filters, use **Option 1**
* ..if you use Front-end filters, but not the generic ones, then **Option 2**
* ..if you want to be able to search titles and content, then **Option 3**

![](https://wp-dreams.com/wp-content/uploads/2017/09/28/admin/14922/admin/keyword-search-only-3-min.jpg)

## Just add keywords, and it’s done

On the post editor screen, keep adding additional keywords to the meta box (space separated), and the plugin will use those exclusively.

![](https://wp-dreams.com/wp-content/uploads/2017/09/28/admin/14922/admin/keyword-search-only-4-min.jpg)


---

# 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://knowledgebase.ajaxsearchpro.com/miscellaneous/post-types/searching-posts-pages-or-any-cpt-by-specified-keywords-only-nothing-else.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.
