# 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="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FIFujNW2w7vGBWle7QUxI%2Ffavicon-black%20(1).png?alt=media&#x26;token=7217d37c-7da0-48b5-a775-e14b6e5de2f4" 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="query-editor/posts" %}
[posts](https://docs.cwicly.com/blocks/query/query-editor/posts)
{% 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="query-editor/terms" %}
[terms](https://docs.cwicly.com/blocks/query/query-editor/terms)
{% endcontent-ref %}

## Users

Users are visitors who have login access to your site.

{% content-ref url="query-editor/users" %}
[users](https://docs.cwicly.com/blocks/query/query-editor/users)
{% 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="query-editor/comments" %}
[comments](https://docs.cwicly.com/blocks/query/query-editor/comments)
{% endcontent-ref %}
