Date Queries

There are 8 parameters for managing date queries: date — Serves as a shortcut to setting the ‘year’, ‘month’, and ‘day’ arguments for a given date query struct on the second-level. It accepts either a strictly-formatted ‘YYYY-MM-DD’ date string or a relative-formatted date string, such as ‘Sunday, September 7’. The relative-formatted string is intended as a […]

Taxonomy Queries

Taxonomies are tools for organizing content in WordPress. Categories and tags are built-in taxonomies, and you can create additional taxonomies. Use the parameters below to query based on taxonomy terms. taxonomyThe taxonomy you would like to query tax_termThe term (or terms) you would like to include tax_operatorOperator to test. Possible values are ‘IN’, ‘NOT IN’, […]

Use template parts to match your theme’s styling

Display Posts lets you easily display posts based on any criteria you choose without any coding. It can be difficult to match your theme’s design for post summaries using just the shortcode and CSS. That’s where template parts come in. Styling belongs in a theme Your theme already contains the markup and styling for displaying posts. […]

List posts in the current category

Display Posts lets you limit posts to a certain category with the category parameter. But what if you’d like to show other posts in the current post’s category without having to type it out each time. This is especially useful in widgets and sidebars since you can add the shortcode once and it will automatically update to […]