Include the post categories in the listing

Display Posts can include a list of terms associated with each post in the listing. These can be categories, tags, or any custom taxonomy. If you set category_display=”true” it will include a listing of the categories. You can also list tags ( category_display=”post_tag”) or any custom taxonomy ( category_display=”taxonomy_name”). Here’s an example from this site. […]

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. […]