# Query Editor

The Query Editor helps you to construct and modify a Wordpress Query using a structured format in which you can interactively select components.There are 4 main Query types : Post Types, Terms, Users and Products.

You can also export your Query elsewhere by copying and pasting the generated code.

<figure><img src="https://lh6.googleusercontent.com/dceEPLRErSuem0h2kbYzQyPzRbsuNBUZPN6Ox9OMQ6K0WAMp5vA0VPk1c1rosmEaXBebXR95jYmJ86Hlwy603MKiTfTQ_zv9I1_RRzXLCO6hCu9GkJo2lIMa8H7Q39mT-HJ6FiRkw0zc2_GJ7f48Q-J73GFNSy-_-Nsi-sWy8LPu85-KMsxoVqfjfrb6JA" alt=""><figcaption></figcaption></figure>

<details>

<summary>Open</summary>

1. Click on the ➕ ​​icon to open the Inserter Panel
2. Select <img src="/files/sHJscThWb2nW7KToY5IY" alt="" data-size="line"> `query` block
3. Open the Block Inspector
4. Navigate to the Primary tab
5. Find Query Builder icon
6. Click to open Query Builder Modal

</details>

## Query ID

The Query ID defines the unique identity of a particular query.

It is used for linking to a filter block.

<figure><img src="https://lh6.googleusercontent.com/ObBCeJaW6fsBC90-bT7DowDGW5faJfK2DxE-ut5MJT-ZLKcfcrUdH-A590eppsvsLB49PR40ZSA6SQFUQ0IYGqq-xZTrUc2NjBvcgn_o_8ABmyl2TcDlGnidlauttb0NU9FT7CTKQcJnbH8JxP7oEJfqjAWMgPRUoG9yxIkyQIEPsLdQdJJBqf6yJXk3xg" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
The Query Editor has 4 query types:

* Posts
* Terms
* Users
* Comments
  {% endhint %}

<figure><img src="https://lh6.googleusercontent.com/MFkJ2L-UcmxBjfZxuLBSm5izVOqzgH82LCVHexwQ5gFlKuNcMABdcTsbVn61BpyLtfbKA4i1jqrsmK1mZEYYwWfSBwSqPq7KIVbqoW2nfOoFzfngG4c71a_PtUdqEc6uzAl9kgliOpyn868vFSFaiQz4_NsqjzjlP8Bfo39FU5CwbqUfxRnJhOXkWTflOQ" alt=""><figcaption></figcaption></figure>

## Dynamic

{% hint style="warning" %}
Every setting in the Query Editor can have a dynamic source (meaning the data updates automatically), for any query type.
{% endhint %}

<figure><img src="https://lh6.googleusercontent.com/K1s_LpBEySKjpK085MVut02ICIJAoMEIOCdeSjxh7S2t0LYNAozJw48RYsvKsQzlXUhjpS4_GbN4DoMKH3BL7NcHtMKWxspvAOWlNdxTI8uNJYAhmJepQTNAtUSyBFgLymrV-2NRdjMdpiT0Dn60oFzIKAy3UWKTFsgF1yL7OPasHMASYct6KPre3b2LjA" alt=""><figcaption></figcaption></figure>

## Posts

Posts are time specific pieces of content posted on your website. They can be thought of as articles or updates that you share with your readers.

{% hint style="info" %}
By default, posts are listed in reverse chronological order (this can be changed).
{% endhint %}

{% content-ref url="/pages/jiXXbalor6VbodOeqo3T" %}
[Posts](/blocks/query/query-editor/posts.md)
{% endcontent-ref %}

## Terms

Terms refer to the items in a taxonomy and includes: Taxonomies, Terms, Search, Include/Exclude, Descendants, Order by Order, Pagination, Count, Return Fields, Meta Query, Code.

{% content-ref url="/pages/WjQRxZlf85iLOzi71nQf" %}
[Terms](/blocks/query/query-editor/terms.md)
{% endcontent-ref %}

## Users

Users are visitors who have login access to your site.

{% content-ref url="/pages/KbFz81BUVpwRkIKZ43C3" %}
[Users](/blocks/query/query-editor/users.md)
{% endcontent-ref %}

## Comments

The Comments property allows you to Add comments to your search query in order to add context for users who may want to use or edit your queries at a later date.

{% content-ref url="/pages/k1kQOBOEf1Qo9U3S4rW8" %}
[Comments](/blocks/query/query-editor/comments.md)
{% endcontent-ref %}


---

# 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://docs.cwicly.com/blocks/query/query-editor.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.
