> For the complete documentation index, see [llms.txt](https://docs.wpcodelabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wpcodelabs.com/plugins/wp-query-engine.md).

# WP Query Engine

![](https://ps.w.org/wp-query-engine/assets/banner-1544x500.png)

WP Query Engine allows you to perform custom queries using the WP\_Query class, using a simple shortcode or the built in Beaver Builder module.

* Any post parameters
* Any meta data
* Any taxonomy data, such as category or tag

In addition, the plugin offers several exposed filter and action hooks for theme developers to alter the default functionality, including adding additional parameters not specified in the shortcode.

{% content-ref url="/pages/-LUHMQPEDLjMHtyZwM9n" %}
[Getting Started](/plugins/wp-query-engine/getting-started.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LUHMURAaI8vXPlKC4sl" %}
[Changelog](/plugins/wp-query-engine/changelog.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LUGdfNNfLYk8sBV6pQc" %}
[Shortcode](/plugins/wp-query-engine/shortcode.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LUGibuGvL1jmvuwoDfb" %}
[Filters](/plugins/wp-query-engine/untitled.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LUGvdT23U7psNL0whrt" %}
[Templating](/plugins/wp-query-engine/templating.md)
{% endcontent-ref %}


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.wpcodelabs.com/plugins/wp-query-engine.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
