List Stuff

Requires TWB Tools 0.1 or later. Inspired by the List Category Posts plugin.

Usage: [ liststuff argument1=value1 argument2=value2 … ]. Also includes syntax event_before=”now” or event_after=”now” to limit to posts that have a relevant My Calendar event_begin date.

The arguments are:

Argument Default Description
id 0 Show only posts with this category ID
name default Show only posts with this category name
orderby date Sort the posts by this attribute
order desc Sort asc or desc
numberposts 100 Display no more than this number of posts
date no Display the date (either publish date or When & Where date)
author no Display the author
dateformat current ‘date_format’ option Format of displayed date
template default Name of the template file (without the .php) in the current theme’s ‘liststuff’ directory to be used to display the posts
excerpt yes Display the excerpt
related yes Display related posts, pages etc
exclude 0 Exclude posts with these IDs
excludeposts 0 exclude posts with these IDs
offset 0 Start at this post in the sorted list
tags Display only posts with these tags
event_before Display only posts whose event start date is before the supplied date/time
event_after Display only posts whose event finish date is after the supplied date/time
when no Display the ‘When’ block
where no Display the ‘Where’ block
selected Display the post that was selected by some other TWB plugin, such as When & Where
thumbnail no Display the thumbnails
content no Display the post content
catlink no Display a link to the category
comments no Display comments
type post Display only posts of this type, eg ‘page’ or a custom type