Custom WP Query
Clicking on the funnel icon next to the content type opens up a panel for writing your custom WP Query for the post type you would have selected from the dropdown.
You can build your custom query using any of the WordPress standard parameters for query arguments, to read more details on all the available parameters for your custom arguments you can follow WordPress default codex here WP_Query
Example of a WooCommerce Product Custom Query String
1
tax_query[0][taxonomy]=product_cat&tax_query[0][terms][]=clothing&tax_query[0][field]=slug
Copied!
Example of Query String with JSON
1
{
2
"tax_query": [
3
{
4
"taxonomy": "product_cat",
5
"terms": [
6
"clothing"
7
],
8
"field": "slug"
9
}
10
]
11
}
Copied!
1
{
2
"post_parent__not_in": [
3
12,
4
14
5
]
6
}
7
// 12, 14 are post Ids
Copied!
you can use this Github post as a reference point for all the available parameters with WP_QUERY https://github.com/luetkemj/wp-query-ref

Default Query

Last modified 5mo ago
Copy link