By default you get a basic recent posts widget that simply displays text only which usually is the post title that is linked and perhaps the date. The Recent Posts plugin gives you a very flexible widget to display your latest posts with several optional settings that includes enabling or disabling elements, adding thumbnails, control your excerpts, and more. I would recommend you check out the developer’s documentation for this plugin.
- Go to Plugins >> Add New
- Search for “Recent Posts Plus” to install and activate
The Demo Site Settings
Settings for this plugin can be used as an option which will match those of the live demo site for Circumference. First, you will need to drag a Recent Posts Plus widget into the location you want; in this case, the Right Sidebar. Now you can set your options as follows:
- Title your widget
- Choose the number of posts you want to display
- Include Post Thumbnail
- Include Post Excerpt
- Show Excerpt options
- Limit Post Title = 30 char
- Limit Post Excerpt = 80 char
- Limit Ellipsis = …
- Post Date Format = F j, Y
- Thumbnail Size = 80 x 80
- Set your Query as with the code I’ve provided you (see below)
- Set your Widget Output Template I’ve provided you (see below)
- Click Save
Query Code
Change the category ID’s 1,2,3, etc., to your own categories because everyone will have different ID’s. Separate each ID with a comma.
{"cat": "1,2,3"}
Widget Output Template Code
<li>{THUMBNAIL}<div class="rpp-box"><h4><a title="{TITLE_RAW}" href="{PERMALINK}">{TITLE}</a></h4>
<div class="rpp-date">{DATE}</div>{EXCERPT}</div></li>
Note:
Please note that in order to display a thumbnail, your post needs to have a “Featured Image” attached to it.
Screencast Tutorial