# 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.

<figure><img src="https://lh3.googleusercontent.com/nk3r0DE5Hz0PplyR4Xsn43xI_QPGjlbHU7bZIFtoVnLGWDrp7jXePGyveMlrCDI6JdhqxERWxRtsj_wghiYBLHrOI7j0__elE9pD3leqFSnTXaXKW7HIQpLtAYFVA-kdMv7ndQR0HWak23iCVOr98zvvXADuih0wuz7OfU_qBXIQFDRlAGo_xJlnNr8uUA" alt=""><figcaption></figcaption></figure>

## Taxonomies

The Taxonomies parameter allows you to group Posts and Custom Post Types together and includes: Categories, Tags, Navigational Menus, Link Categories, Formats, Themes, Template Part Areas.

<figure><img src="https://lh3.googleusercontent.com/jimCpu4XGVhcQPnjANadeZmes6o424v3df8G_kUQhCocydNISgCCUyejp1m1pEVOTpGcEIjdjGLLU3HXrnAczhAbSKYq8m1t2Tn6O8oqOOnBtJZPaKgtfN0kviKSxF9g9YBjLSxiEtNwYYDr4awteFg7_y9Y-FG4arpfn0oq0ZXr0_occpnOEXG33qMMDA" alt=""><figcaption></figcaption></figure>

<details>

<summary><strong>Filter</strong></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 Editor icon
6. Click to open Query Editor
7. Select Terms in dropdown
8. Click Taxonomies Query in panel
9. Find Taxonomies dropdown
10. Select required parameter (Categories, Tags, Navigational Menus, Link Categories, Formats, Themes, Template Part Areas).

</details>

## Terms

The Terms property allows you to select the items in a taxonomy. They may be uncategorised, Cwicly, external, grouped, simple, variable or uncategorised.&#x20;

You may search by Term Name or Term Slug (A slug is automatically generated by Wordpress when you give a title to a post, page, category or tag).

<figure><img src="https://lh3.googleusercontent.com/WQyq6lsaJuMHxjWabcHXgPkU8SKa6CkSGYE7X9atawq1xKHdYt93r-ntTk_3wNutpcTMBwvFMa8bo9w3x8eMULupRV-uHjlpL0WFI251o4-fxH9zv5X3_sgRaI83XrNB8UQjUPM3W0JgoKaSGWhFeXrqPcoULfbE9eCUoGTR--M7BD3dBbiVifCD-nbeMQ" alt=""><figcaption></figcaption></figure>

<details>

<summary>Input </summary>

1. Click on the ➕ ​​icon to open the [I](https://docs.cwicly.com/gutenberg/inserter-panel/)nserter 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 Editor icon
6. Click to open Query Editor
7. Select Terms in dropdown
8. Click Terms Query in panel
9. Input required Term Name or Term Slug.

</details>

## Include/Exclude

The Include/Exclude property allows you to Include or Exclude specified Terms or to Exclude a Terms Tree (hierarchy of terms).

![](https://lh3.googleusercontent.com/xu0LkSTH8Z8i_WeBW3C0dpaEO2RakwF2UCxJbSQvLpDSbPMUlvVMPtZikggph-NXZYWZ438xrRA5gvExEf5NaWPdapgXYk2_ajYBqOp3TImyFEi9nnzJIa7-oq_c9JQwjhcMoCvSgzonwrFRwj4OVTzFAhQqU8cOubj4BReSZlLifeLW7s-8aipLv6rDtA)

<details>

<summary>Include/Exclude</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 Editor icon
6. Click to open Query Editor
7. Click Terms in panel
8. Input required terms to Include/Exclude and/or Terms Tree to Exclude

</details>

## Descendants

The Descendants property allows you to query by Child Of or Parent. You can further specify whether it should include Hierarchical or Childless categories or not.

![](https://lh5.googleusercontent.com/A7gr6sZme784EMMqv4hkPyd49rrCaWjSP-QinlGaeC6Rlt8No2o_DhcxAuLHiq6StoohaqA6gceo_1bZw5IlzYJLNQsMOn9X-Ub4zX6_EdpZxiLpUzGLPGbAVxaWyVSDcxXYjVbBlihL4NtUSaOyswxh-V2648-s0L-3bmJb5_GscogzuSdYME3iCirDiw)

<details>

<summary>Filter</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 Editor icon
6. Click to open Query Editor
7. Select Terms in dropdown
8. Click Descendants Query in panel
9. Input Query requirements such as 'Child Of', 'Parent'
10. Toggle Hierarchical and/or Childless as required

</details>

## Count&#x20;

The `Count` property allows you to count the number of terms. This can be Count (Parents only) or Pad Count (includes Parents and Children).

![](https://lh5.googleusercontent.com/mNdGVb1EwPHEbjzNSbP8kJSWHINNnqVemN-MVDqWgWoN73ODko8eeoH1iA3g6h9DZ-QYJV48f-oK6KIS2rU2i-P0d7ATCgx9xv_d7g7HHGzW83wK74WhOPZ7QCkSgSt09SSUNQZb9M2scNPSMNoK9pLAzL5dfFLnAT6qrH3D3UYadkpsTGhw4pymiXitQA)

<details>

<summary>Toggle</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 Editor icon
6. Click to open Query Editor
7. Select Terms in dropdown
8. Click Count in panel
9. Find Count and Pad Count
10. Toggle as required

</details>

## Fields

The Fields parameter sets which fields you want to return. You can toggle Hide Empty and/or Get All or Empty.

![](https://lh4.googleusercontent.com/wmkcH9ZOoxTiwMHgAg6i8rAyklgZe-5P-zsyeWDfAnYN5mOd-JsETqUO1YJNurHYyaUnvBHxkG5UiS44jxHHx_gddETz7OcaiCE41H_jAC9CATa1YWkfCyA3c9daMpPKi5MQ_IsGWXpcdxj_zKHc3KdHQlV3YWb4eZaDpg4VFxvsBpAbln98FH6zqbMgMQ)

### Hide Empty

The Hide Empty parameter allows you to choose whether or not to hide empty fields.

<details>

<summary>Toggle</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 Editor icon
6. Click to open Query Editor
7. Select Terms in dropdown
8. Click Return Fields in panel
9. Find Hide Empty
10. Toggle&#x20;

</details>

### Get

The Get parameter allows you to filter only Empty or All posts.

<details>

<summary>Select</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 Editor icon
6. Click to open Query Editor
7. Select Terms in dropdown
8. Click Return Fields in panel
9. Find Get
10. Select Empty or All in the dropdown

</details>

## Order&#x20;

The Order and Order By property allows you to choose the order in which you want your terms displayed. You can choose to Order By specific parameters or by ascending or descending Order.

<figure><img src="https://lh5.googleusercontent.com/jvNh59yFbwu7bI724DmH9EfgleBBOnY3-BCnjsOYhRYlyHI0uFyxCcqvj1FdNC3gYmbgHEi8idgc1ammHwAWav5yIFDg_W5UYznuqyNw_nuyGRKoY_7agwUctZoBq0aOExnJszHKR7wKZI-FprsOvpfiEMLd_HTl64YcBlkgrpZ40QW_LH4pq_hRb95jTw" alt=""><figcaption></figcaption></figure>

### Order By

The Order By parameter  allows you to filter by specific terms such as ID, Author, Title, Name, Post, Published, Modified, Parent, Random, Comment Count, Relevance, Menu Order, Meta Value, Numeric Meta Value.

![](https://lh5.googleusercontent.com/v-7s_w23zyERtnOsijg3JWRPMIQrh-Q1SLo23oZ3TiE_0nifojTCrcxzx9Gy6SmRlkOEq-8ZbML4R142B5dGBJ6H0Kouz76FYIWXpj9HfAt6NIYPTTYiJpniDQ2XSwT8fuAXq7YtMx5cj8Ir1JeZrfomYKW3L1A0_7T9kqaZgjuGyvv0E9v7ifPQ72Qy4g)

<details>

<summary>Terms</summary>

***None*** No order.

***ID*** Order by Post ID (Note capitalisation).

***Author*** Order by Author.

***Title*** Order by Title.

***Name*** Order by Post Name (Post Slug).

***Post*** Type Order by Post Type.

***Published*** Date Order by Published Date.

***Modified*** Date Order by last Modified Date.

***Parent*** Order by Post/Page Parent ID.

***Random*** Random Order.

***Comment*** ***Count*** Order by number of comments.

***Relevance*** Order by search terms.

***Menu Order*** Order by Page Order.&#x20;

***Meta Value*** Order by Meta Value.

***Numeric Meta Value*** Order by numeric meta value.

</details>

<details>

<summary>Filter</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 Editor icon
6. Click to open Query Editor
7. Select Terms in dropdown
8. Click Order and Order By in panel
9. Find Order By
10. Select required Terms (ID, Author, Title, Name, Post, Published, Modified, Parent, Random, Comment Count, Relevance, Menu Order, Meta Value, Numeric Meta Value)

</details>

### Order

The Order Parameter allows you to filter in Descending or Ascending Order.

![](https://lh3.googleusercontent.com/I3xE2ljwHgDoXC8RGlk1DZtJ6d6SlzR1qS6Hf6-RCWm3VFtqS6Sd9eihrCcga6F3LtrcxiVMO1aYY-kn1YO0E2cbrTIUh7IN6H6EzbidEjWcLZo2cqti_dzyGvsazdrFBvB_vvNo6cCmlngcx7NGoKhEAO0RHBZmd3V7QLxrxyA44H_fMjhbMd1OJHEVXA)

<details>

<summary>Filter</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 Editor icon
6. Click to open Query Editor
7. Select Terms in dropdown
8. Click Order and Order in panel
9. Find Order&#x20;
10. Select Desc (descending) or Asc (Ascending) Order

</details>

## Pagination

Pagination allows you to choose the number of items you wish to display per page, whether you want any offset and if so how much and whether you want the items to be 'sticky'.

<figure><img src="https://lh4.googleusercontent.com/5gLvLJRL442MXp_GXXSyGEy6sjJtWREojqhMt49AexVRdWQcdJML0MjZQ9Gd0Ng8sy9TOCN9XdGnx_mjz3eXpH8uuk4aFttgQBSBThrgXGvYDJ3RPrJKe9Qqkdwz7zK_cjKawykaTWMslnhIymT_XbMNRMrMgmWKF3wRM1-AM254KhLX76HhR0-C3dNLXA" alt=""><figcaption></figcaption></figure>

<details>

<summary>Filter</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 Editor icon
6. Click to open Query Editor
7. Select Terms in dropdown
8. Click Pagination in panel
9. Select desired parameters (Number of Items, Offset, Page, Sticky Posts)

</details>

### Number of Items

The  Number of Items parameter allows you to choose how many Items you wish to display on each page.

<details>

<summary>Add/Remove</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 Editor icon
6. Click to open Query Editor
7. Select Terms in dropdown
8. Click Pagination in panel
9. Find Number of Items
10. Input Value

</details>

### Offset

The Offset parameter offsets the number of Items you set. For example an Offset of 1 will make the second item become the first.

<details>

<summary>Add/Remove</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 Editor icon
6. Click to open Query Editor
7. Select Terms in dropdown
8. Click Pagination in panel
9. Find Offset
10. Add/Remove

</details>

### Page

The Page parameter allows you to set the number of Pages for your Query.

<details>

<summary>Add/Remove</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 Editor icon
6. Click to open Query Editor
7. Select Terms in dropdown
8. Click Pagination in panel
9. Find Page
10. Add/Remove

</details>

### Sticky Posts

The Sticky Posts parameter allows you to include or exclude Sticky Posts in your filter.

<details>

<summary>Toggle</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 Editor icon
6. Click to open Query Editor
7. Select Terms in dropdown
8. Click Pagination in panel
9. Find Sticky Posts
10. Toggle to include/exclude

</details>

## Search

The Search property allows you to search by: Keyword, Term Name Like, Term Description Like.

![](https://lh3.googleusercontent.com/-2PeU37dzs7na2RyqH_GdEgi2h7aKAW2Xi2ndx1tGXi_ZmQ2ZhbvEYTWAUQHRDW9XlCQ6bQTL6EjCAmZRa6AkcYx_X0Dn80wpomsO8pKul4kr3P_2x6spqLC0378Z915eQbnT11cCszk8YF9ytOdn7DjNsrU8VTxl9-u7j-Mi7C6ckQSa8YoSYN3oYJ-OA)

<details>

<summary><strong>Search</strong></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 Editor icon
6. Click to open Query Editor
7. Select Terms in dropdown
8. Click Search Query in panel
9. Input required Keyword and/or Term Like Name and/or Term Description LikOrder and Order By (Terms)

</details>

## Meta Query

The Meta Query parameter is a helper that allows you to filter your results using object metadata such as: Meta Key, Meta Value, Meta Compare, Meta Type, Relation, Inner Meta Query.

See Posts: Meta Query&#x20;

{% content-ref url="posts" %}
[posts](https://docs.cwicly.com/blocks/query/query-editor/posts)
{% endcontent-ref %}

![](https://lh4.googleusercontent.com/hUVwLUQkBwpfOetTF19F_BzcwRRSk2Fj-Ssxl_JOH48fblWo49KlCnDJ7NKLQXLZXVmf0MxTc90TFIn_90J2nuxwdOeXkAme9HICPrqZ2unlHzavpEfbFVOFRoXygHuht9l4sWsYJJU_2I8zAxaSKnSeeEcvv_dfR8b6qAmAKZ6nPw6KPKcZvD1wZx4i4g)   ![](https://lh5.googleusercontent.com/FL38IkbHsKBwZXhWhqeYC2IholsSEWqJ--zQ4DWcl6mpfh_IzmjTTx48BhtQ6CYhHHfV9vZy3DBceVgHwDug4yIp1qa6OLEQG4eJwNWACyw-f6QkcX5kJL5bLaMNRNy-0SOhZHf1lblHDvsh71tibIzmctj4LQOxAgxA353t9_p3p3EKuSoae0B7WfGSfg)

<details>

<summary><strong>Filter</strong></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 Editor icon
6. Click to open Editor
7. Select Terms in dropdown
8. Click Meta Query in panel
9. Find Relation
10. Select And/Or
11. Add new Meta Query
12. Click Name to edit Meta Query
13. Choose Meta parameter (Meta Key, Meta Value, Meta Compare, Meta Type, Relation, Inner Meta Query).

</details>

<figure><img src="https://lh5.googleusercontent.com/VMkqzkIYwrt24yo3P-pw3D5o2j7yxHJRgN8rFlaIGlSiVeKw3mpWglLxUIP2Ff53hn0LrvzIvz21vQDJZr3WYa3teTuwLUrqMnjmHgVp0URt9U8fVBLmAVoxOG3xUk-lRBayJzeTrj1MnclZH8LkBVo5yNXc0rDkI63K9ivzI_MG-yLrzTY5Ub6z6XkmYQ" alt=""><figcaption></figcaption></figure>

### Meta Key

The Meta Key parameter is used to retrieve a saved value from the database and display it.

<details>

<summary><strong>Add</strong> </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 Editor icon
6. Click to open Query Editor
7. Select Terms  in dropdown
8. Open Meta Query in panel
9. Find Relation
10. Select And/Or
11. Add new Meta Query
12. Click Name to edit Meta Query
13. Find Meta Key
14. Add Key

</details>

### Meta Value

The Meta Value parameter allows you to get all the posts with a specific custom field value.

<details>

<summary><strong>Add</strong> </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 Editor icon
6. Click to open Query Editor
7. Select Terms  in dropdown
8. Open Meta Query in panel
9. Find Relation
10. Select And/Or
11. Add new Meta Query
12. Click Name to edit Meta Query
13. Find Meta Value
14. Add Value

</details>

### Meta Compare

The Meta Compare parameter allows you to set up a query using a comparator two sets of values, such as: *=,* != , >,  > , >= ,< ,<=, LIKE, NOT LIKE, IN, BETWEEN, EXISTS, NOT EXISTS, REGEXP, NOT REGEXP, RLIKE, NOT RLIKE.

<details>

<summary>Comparator</summary>

**>** Less than

**>=** Less or equal to

**<** Greater than

**<**= Greater than or equal to

**LIKE** Allows you to search for a part of a comment, such as first name contains John but can also be Johnny, Johnathan, etc

**NOT LIKE** Inverse of LIKE, must not contain any part of a comment

**IN** Must be in

**BETWEEN** Must be between

**NOT BETWEEN** Must not be between

**EXISTS** Must exist

**NOT EXISTS** Must not exist

**REGEXP** (Regular Expression) Must match pattern with a sequence of characters

**NOT REGEXP** (Not Regular Expression) Must not match pattern with a sequence of characters

**R LIKE** (Regular Expression Like)

**NOT RLIKE** (Not Regular Expression Like))

</details>

<details>

<summary><strong>Compare</strong></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 Editor
7. Select Terms in dropdown
8. Open Meta Query in panel
9. Find Relation
10. Select And/Or
11. Add new Meta Query
12. Click Name to edit Meta Query
13. Find Meta Compare
14. Add Comparator (*=,* != , >,  > , >= ,< ,<=, LIKE, NOT LIKE, IN, BETWEEN, EXISTS, NOT EXISTS, REGEXP, NOT REGEXP, RLIKE, NOT RLIKE)

</details>

### Meta Type

The Meta Type parameter allows you to set up a query using a Meta Type such as: Numeric, Binary, Char (Character), Date, Datetime, Decimal, Signed, Time.

<details>

<summary><strong>Add</strong></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 Editor icon
6. Click to open Query Editor
7. Select Terms  in dropdown
8. Open Meta Query in panel
9. Find Relation
10. Select And/Or
11. Add new Meta Query
12. Click Name to edit Meta Query
13. Find Meta Type
14. Add parameter (Numeric, Binary, Char (Character), Date, Datetime, Decimal, Signed, Time)

</details>

### Meta Relation

The Meta Relation parameter allows to associate extra information stored in independent entities (meta entities) to content entities using an And/Or relation and a single or multiple Inner Query(ies).

<details>

<summary><strong>Add</strong></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 Editor icon
6. Click to open Query Editor
7. Select Terms  in dropdown
8. Open Meta Query in panel
9. Find Relation
10. Select And/Or
11. Add new Meta Query
12. ClickName to edit Meta Query
13. Find Meta Relation
14. Choose Relation (And/or)
15. Add Inner Meta Query name

</details>

## Code

The Code parameter allows you to copy and export the code generated by the Query you have set up.

<figure><img src="https://lh3.googleusercontent.com/tvDiQbthZFkr0VbhaRZOSbTZ3Sq9kO9y0JMG313_-GMafaTbPM4vn7fhCygNw4yP18W2KDsGgTlB6el-cHNKG7Zythy8yaWlKwtsB6MORcg47q9uelKdIsZJCXBTrRV-YGaIH5f9azE1AH8Wi2621TzfnKH7f9qF5YE3kbt8b819hqpgqu6faFvY6XlflA" alt=""><figcaption></figcaption></figure>

<details>

<summary><strong>Copy</strong></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 Editor icon
6. Click to open Query Editor
7. Select Terms in dropdown
8. Open Code in panel
9. Find Code
10. Copy required Code&#x20;

</details>
