Posts
Posts
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.
Posts Post 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.
Exclude Current
Exclude Current can be toggled to exclude the Current Post. By default it is deactivated and the Current post is included.
Include Posts
Include Posts allows you to include selected posts.
Exclude Posts
Exclude Posts allows you to exclude selected posts.
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.
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).
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.
Compare
The Compare parameter allows you to set a Query filter to Compare comments
Permissions
The Permissions property defines the access to your posts, such as whether a post is 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.
Passwords
The Passwords
property allows you to filter posts: Have/Do not Have Password, or by Password .
Have/Do not Have Password
Posts can be filtered on the basis of whether they have or do not have a password.
Password
Posts can be filtered by Password.
Order
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.
Order
Order lets you choose a direction for your retrieved posts (ascending or descending). By default, posts are by descending order.
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.
Page
The Page property allows you to choose the number of the page you want to be on.
Offset
The Offset property offsets the number of Items you set.
An Offset of 1 will make the second item become the first.
Sticky Posts
The Sticky property allows you to include or exclude Sticky Posts.
Search
The Search
property allows you to search using a keyword.
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.
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.
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.
Include Children
The Include Children property allows you to include or exclude child categories.
Taxonomy
The Taxonomy property allows you to organise your content and data including: 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
Field
The terms parameter allows you to use additional information for a query, such as: 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.
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.
Meta Key
The Meta Key parameter is used to retrieve a saved value from the database and display it.
Meta Value
The Meta Value parameter allows you to get all the posts with a specific custom field 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.
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.
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).
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.
Code
The Code property allows you to copy and export the code generated by the Query you have set up.
Last updated
Was this helpful?