diff --git a/functions/wpt_events.php b/functions/wpt_events.php index 62d67702..1338c5bf 100644 --- a/functions/wpt_events.php +++ b/functions/wpt_events.php @@ -528,10 +528,11 @@ function last() { } /** - * Get a list of events. + * Gets a list of events. * * @since 0.5 * @since 0.10 Renamed method from `load()` to `get()`. + * Added 'order' to $args. * * @return array Events. */ diff --git a/functions/wpt_productions.php b/functions/wpt_productions.php index cd39dfc3..e98da3ca 100644 --- a/functions/wpt_productions.php +++ b/functions/wpt_productions.php @@ -337,30 +337,28 @@ public function get_seasons() { } /** - * Get all productions. - * - * Returns an array of all productions. + * Get a list of productions. * - * Example: - * - * $productions = $wp_theatre->productions->load(); + * @since 0.5 + * @since 0.10 Renamed method from `load()` to `get()`. + * Added 'order' to $args. * * @param array $args { - * int $season. Only return productions that are linked to season. - * int $limit. See WP_Query. - * $post__in. See WP_Query. - * $post__not_in. See WP_Query. - * $cat. See WP_Query. - * $category_name. See WP_Query. - * category__and. See WP_Query. - * category__in. See WP_Query. - * category__not_in. See WP_Query. - * ignore_sticky_posts. See WP_Query. + * string $order. See WP_Query. + * int $season. Only return productions that are linked to $season. + * int $limit. See WP_Query. + * $post__in. See WP_Query. + * $post__not_in. See WP_Query. + * $cat. See WP_Query. + * $category_name. See WP_Query. + * category__and. See WP_Query. + * category__in. See WP_Query. + * category__not_in. See WP_Query. + * ignore_sticky_posts. See WP_Query. * } - * @return mixed An array of WPT_Production objects. + * @return array An array of WPT_Production objects. */ public function get($filters=array()) { - global $wpdb; global $wp_theatre; $defaults = array( diff --git a/readme.txt b/readme.txt index 0a98c261..46d8885e 100644 --- a/readme.txt +++ b/readme.txt @@ -82,6 +82,21 @@ The new feature may be added directly to the Theater plugin or as an extension s = 0.10 = +Release Date: December 29th, 2014 + +* Bugfixes + * Changed priority of some `save_post`-hooks to avoid conflicts with ACF's `save_post`-hooks. Thanks [paramir](https://github.com/paramir)! + * Fixed some PHP warnings. + +* Enhancements + * Event listings can be paginated or grouped by year: `[wpt_events paginateby=year]` or `[wpt_events groupby=year]`. + * Better support for past events. You can now create historic event listings paginated or grouped by day, month, year or category. + * You can change the order of events and production in listings: `[wpt_events order=desc]` or `[wpt_productions order=desc]`. + +* Experimental + * A new WPT_Importer class to easily create your own import for your ticketing system. Still a work in progress. Play with it, but don't use it on your production website. Always make backups! + + = 0.9 = * Added support for start and end dates in `[wpt_events]` shortcode. You can throw anything at it that strtotime understands! Some examples: * `[wpt_events start="now"]`