# Excluding & Including results

The plugin allows both excluding and including results based on criteria. These rules apply to any **post type, attachment and comment type** results.

*Term, user and buddypress type results exclusion rules might be different, and it is located on the corresponding* `General Options` *panel.*

* [Exclude or Include results by date](/advanced-options/excluding-and-including-results/exclude-or-include-by-date.md)
* [Exclude or Include  results by users](/advanced-options/excluding-and-including-results/exclude-or-include-by-users.md)
* [Exclude results by category or terms](/advanced-options/excluding-and-including-results/exclude-by-category-or-terms.md)
* [Exclude results by item or ID](/advanced-options/excluding-and-including-results/exclude-by-item-or-id.md)
* [Include results by ID](/advanced-options/excluding-and-including-results/include-by-id.md)
* [Exclude or Include by custom field values (post meta)](/advanced-options/excluding-and-including-results/exclude-or-include-by-custom-field-values.md)
* [Include results only from certain categories (or terms)](/advanced-options/excluding-and-including-results/include-by-categories-or-terms.md)


---

# 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/advanced-options/excluding-and-including-results.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.
