Todays News

Display Posts Shortcode

The Display Posts Shortcode allows you to fine-tune the posts you wish to display on a page.

Add the shortcode

in a post or page, and use the arguments to query based on tag, category, post type, and many other possibilities.

Image Alignment

A common request is display a list of posts with title, excerpt, and the thumbnail aligned to the left. Here’s the shortcode you might use:

Test Test - Display Posts Shortcode Contents Image Alignment Examples Arguments Multiple Taxonomy Queries Limits Related Gist Google Calendar Shortcodes Microsoft Skydrive PowerPoint Web App Google Docs Google Maps Audio The Display Posts Shortcode allows you to fine-tune the posts you wish to display on a page. Add the shortcode in a post or page, and use the arguments to query based on […]
Todays News - Display Posts Shortcode Contents Image Alignment Examples Arguments Multiple Taxonomy Queries Limits Related Gist Google Calendar Shortcodes Microsoft Skydrive PowerPoint Web App Google Docs Google Maps Audio The Display Posts Shortcode allows you to fine-tune the posts you wish to display on a page. Add the shortcode in a post or page, and use the arguments to query based on […]

This includes the excerpt, adds an image of the “thumbnail” size (you can customize the image sizes in Settings > Media), and tells it to present the list without bullets.

In order to get the image floating to the left, add this to your custom CSS file (requires the Custom Design upgrade):

.display-posts-listing .listing-item {
clear: both;
}

.display-posts-listing img {
float: left;
margin: 0 10px 10px 0;
}