Posts are entries listed in reverse chronological order on your site. They can be thought of as articles or updates that you share with your readers.
When you select Posts in the dropdown to the right of the Query ID, a panel of clickable options appears so that you can select different filtering parameters for your Posts, such as Posts, Author, Mime Types, Comments, Permissions, Status, Passwords, Order, Pagination, Search, Taxonomy Query, Meta Query, Date Query, Code.
A blue dot will appear to the left of a parameter to let you know you have added a parameter.
Post Type
The different types of content in WordPress are usually referred to as Post Types. This can lead to confusion as Post Types includes all the different types of Wordpress content including Posts, Pages and Media. These are all specific Post Types.
PostsPost Type is dynamic and used in blogs.
Pages Post Type is static , outside the normal blog stream or feed.
Media Post Type contains information about uploaded files.
You can select one or more Post Types.
Filter
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the Primary tab
Find Query Editor icon
Click to open Query Builder Modal
Select Posts in dropdown
Select Posts (left hand menu)
Find Post Type
Select required content (Posts, Pages, Media)
Exclude Current
Exclude Current can be toggled to exclude the Current Post. By default it is deactivated and the Current post is included.
Exclude/Include Current
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the Primary tab
Find Query Editor icon
Click to open Query Builder Modal
Select Posts in dropdown
Select Posts (left hand menu)
Toggle the Exclude Current property
Include Posts
Include Posts allows you to include selected posts.
Include
Click on the ➕ icon to open the Inserter Panel
Open the block inspector
Navigate to the primary tab
Find Query Editor icon
Click to open Query Builder Modal
Select Posts in dropdown
Select Posts (left hand menu)
Select the Post(s) you wish to Include
Exclude Posts
Exclude Posts allows you to exclude selected posts.
Exclude
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the Primary tab
Find Query Editor icon
Click to open Query Builder Modal
Select Posts in dropdown
Select Posts (left hand menu)
Select the Post(s) you wish to Exclude
Author
The Author property allows you to set Query filters for Authors such as Author ID, Author's Name, or whether a post has an author or no author.
Filter
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the Primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Author in Panel
Select required filter (Author ID, Author's Name, or whether a post has an author or no author)
Mime Types
The Mime Type property (also called media type or content type) allows you to add a post type attachment (audio/ogg, image/png etc).
Input
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the Primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Mime Types in panel
Input Attachment Post Type (audio/ogg, image/png etc)
Comments
The Comments property allows you to set a Query filter to sort comments by
Amount or Compare.
Amount
The Amount parameter allows you to set a Query filter for the amount of Comments.
Input amount
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the Primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Comments in panel
Find Comments Amount
Input value
Compare
The Compare parameter allows you to set a Query filter to Compare comments
Comparator
> 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
NOT REGEXP
Compare
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the Primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Comments in panel
Find Compare
Select operator
Permissions
The Permissions property defines the access to your posts, such as whether a post is readable.
Choose
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the Primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Permissions in panel
Find User Capabilities
Select readable
Status
The Status property allows users to set a workflow status for a post. These include: publish, pending, draft, auto-draft, future, private, inherit, trash, any.
Order and Order By allow you to choose the order in which you want your posts displayed or using a specific parameter. For this, you can choose by Order or Order By.
Order By
Order By lets you sort your retrieved posts by a specific parameter. By default, this is by published date.
Parameters
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.
CommentCount Order by number of comments.
Relevance Order by search terms.
Menu Order Order by Page Order.
Meta Value Order by Meta Value.
Numeric Meta Value Order by numeric meta value.
Order By
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the Primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Order and Order By in panel
Find Order By dropdown
Select required parameter
Order
Order lets you choose a direction for your retrieved posts (ascending or descending). By default, posts are by descending order.
Order
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the Primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Order and Order By in panel
Find Order dropdown
Select direction (descending, ascending)
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'.
Items per Page
The Items per page property allows you to choose how many Items you wish to display on each page.
Add/Remove
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the Primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Pagination in panel
Find Items per Page
Enter value
Click dot to reset
Page
The Page property allows you to choose the number of the page you want to be on.
Add/Remove
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the Primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Pagination in panel
Find Page
Enter page number
Click dot to reset
Offset
The Offset property offsets the number of Items you set.
An Offset of 1 will make the second item become the first.
Add/Remove
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the Primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Pagination in panel
Find Offset
Enter value
Click dot to reset
Sticky Posts
The Sticky property allows you to include or exclude Sticky Posts.
Toggle
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the Primary tab
Find Query Editor icon
Click to open Query Editor
Click Posts in panel
Open Pagination (left hand menu)
Find Sticky
Toggle to include/exclude
Search
The Search property allows you to search using a keyword.
Search
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the Primary tab
Find Query Editor icon
Click to open Query Editor
Click Posts in dropdown
Open Search in panel
Input keyword to search
Taxonomy Query
The Taxonomy Query property allows you to organise your content using additional taxonomies that you have created.
If you have more than one Taxonomy Queries, you can select an and/or relation.
Add
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Taxonomy Query in panel
Find Relation
Select And/Or
Click "+" to add new Taxonomy Query
Edit Taxonomy Query
The Edit Taxonomy Query allows you to choose the parameters of your Taxonomy Query, including Multiple Taxonomy Query, Include Children, Taxonomy, Terms, Field, Operator and Include Children.
Taxonomies
Multiple Taxonomy Query parameter ensures that all the taxonomies are used in a search and not just the first.
Taxonomy parameter is a way of organising your content and data.
Terms parameter are the items in a taxonomy.
Field parameter is additional information added to your posts as metadata.
Operator parameter is the method used for a search.
Include Children parameter allows you to include or exclude child categories.
Name parameter allows you to change the name of your taxonomy query
Edit
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Taxonomy Query in panel
Find Relation
Select And/Or
Click "+" to add new Taxonomy Query
Click Taxonomy Query Name to edit
Name
To edit the name of a Taxonomy Query, click the name box and input a name.
Multiple Taxonomy Query
The Multiple Taxonomy Query property allows you to use multiple taxonomies in a search and not just the first. The Query builder allows you to build a Tax Query to handle multiple taxonomies.
Toggle on/off
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Taxonomy Query in panel
Toggle Multiple Taxonomy Query
Click "+" to add a Child Relation
Select And/Or
Add new Taxonomy Query
Click name to edit Taxonomy Query
Include Children
The Include Children property allows you to include or exclude child categories.
Toggle
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Taxonomy Query in panel
Find Relation
Select And/Or
Add new Taxonomy Query
Click Name to edit Taxonomy Query
FindInclude Children
Toggle to include/exclude
Taxonomy
The Taxonomy property allows you to organise your content and data including: Tags, Navigation Menus, Link Categories, Formats, Themes, Template Part Areas.
Select
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Taxonomy Query in panel
Find Relation
Select And/Or
Add new Taxonomy Query
Click Name to edit Taxonomy Query
Find Taxonomy
Select Taxonomy parameter (Tags, Navigation Menus, Link Categories, Formats, Themes, Template Part Areas)
Terms
The terms property refers to the items in a search, such as: uncategorised, Cwicly, external, grouped, simple, variable, Uncategorised
Select
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Taxonomy Query in panel
Find Relation
Select And/Or
Add new Taxonomy Query
Click Name to edit Taxonomy Query
Find Terms
Select required Terms in dropdown
Field
The terms parameter allows you to use additional information for a query, such as: term_id, name, slug, term_taxonomy_id.
Select
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Taxonomy Query in panel
Find Relation
Select And/Or
Add new Taxonomy Query
Click Name to edit Taxonomy Query
Find Field
Select required Field (term_id, name, slug, term_taxonomy_id)
Operator
The Operator property is the method used for a search, including In, Not In, And, Exists, Not Exists.
Select
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Taxonomy Query in Panel
Find Relation
Select And/Or
Add new Taxonomy Query
Click Name to edit Taxonomy Query
Find Operator
Select Operator (In, Not In, And, Exists, Not Exists.)
Duplicate
The Duplicate icon next to the Taxonomy Query name allows you to copy the Query.
Delete
The Delete icon allows you to delete a Taxonomy Query.
Meta Query
The Meta Query property helps you to filter the results by object metadata, including: Meta Key(Meta Field identifier), Meta Value (Value of Meta Field), Meta Compare, Meta Type, Relation, Inner Meta Query.
Filter
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the primary tab
Find Query Editor icon
Click to open Query Builder Modal
Select Posts in dropdown
Click Meta Query in panel
Find Relation
Select And/Or
Add new Meta Query
Click Name to edit Meta Query
Choose Meta parameter (Meta Key, Meta Value, Meta Compare, Meta Type, Relation, Inner Meta Query.
Meta Key
The Meta Key parameter is used to retrieve a saved value from the database and display it.
Add
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the Primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Meta Query in Panel
Find Relation
Select And/Or
Add new Meta Query
Click Name to edit Meta Query
Find Meta Key
Add Key
Meta Value
The Meta Value parameter allows you to get all the posts with a specific custom field value.
Add
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the Primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Meta Query in panel
Find Relation
Select And/Or
Add new Meta Query
Click Name to edit Meta Query
Find Meta Value
Add Value
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.
Comparator
> 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
NOT REGEXP
RLIKE
NOT RLIKE
Compare
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the Primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Meta Query in panel
Find Relation
Select And/Or
Add new Meta Query
Click Name to edit Meta Query
Find Meta Compare
Add Comparator (=, != , >, > , >= ,< ,<=, LIKE, NOT LIKE, IN, BETWEEN, EXISTS, NOT EXISTS, REGEXP, NOT REGEXP, RLIKE, NOT RLIKE)
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.
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).
Add
Click on the ➕ icon to open the Inserter Panel
Open the Block Inspector
Navigate to the Primary tab
Find Query Editor icon
Click to open Query Editor
Select Posts in dropdown
Click Meta Query in panel
Find Relation
Select And/Or
Add new Meta Query
Click Name to edit Meta Query
Find Meta Relation
Choose Relation (And/or)
Add Inner Meta Query name
Date Query
The Date Query allows you to filter your Posts by Date, such as Year, Month, Week, Day, Hour, Minute, Second, Before a selected date, After a selected date, Compare two or more dates.
The Date Query may be inclusive or not inclusive depending on whether you want to include the current date or not.