=== Simple Events === Contributors: gyrus Donate link: http://www.babyloniantimes.co.uk/index.php?page=donate Tags: events, custom post types Requires at least: 3.0 Tested up to: 3.1.2 Stable tag: 0.1.2 Provides theme developers with simple extensions to sites with events as a custom post type. == Description == If the plugin detects that there is a custom post type registered with a particular name (either 'event' or '*_event'), it steps in and does a number of useful additional things: * For front-end queries fetching events, returned posts are sorted chronologically, the oldest first. * For front-end queries fetching events, by default only future events are returned. This can be overridden by setting the custom parameter `slt_all_events` in your posts query to `true`. * In the admin listing page for events, an 'Event date' column is added. * For particular queries, all actions performed by this plugin can be disabled by setting the custom parameter `disable_simple_events` in your posts query to `true`. In addition, this function is provided for convenience. If an event date exists for the post in question, it returns that; if not, it returns the standard post date. `` * **$the_post** (object) (optional) (default: global $post object) == Installation == 1. Upload the `slt-simple-events` directory into the `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress **IMPORTANT NOTE:** An Event Date custom field will be added to the event edit screen automatically if [my Custom Fields plugin](http://sltaylor.co.uk/wordpress/plugins/slt-custom-fields/) is active. Otherwise, make sure your event post type supports `custom-fields` (see `[register_post_type](http://codex.wordpress.org/Function_Reference/register_post_type)`, and add dates to events with the format YYYY/MM/DD, e.g. 2011/12/21 - this format is required to allow sorting by this field. == Changelog == = 0.1.2 = * Added `disable_simple_events` parameter for posts queries * Added function to consolidate tests for whether a hook should be applied * Changed order in `slt_se_parse_query` to `ASC` (nearest upcoming events first in list) * Changed detection of event post type to "event" or "*_event" = 0.1.1 = * Changed date format to allow proper sorting * Removed `posts_join` and `posts_where` filters for WP 3.1.1+ - doesn't seem to be necessary = 0.1 = * First version