By default the Events Calendar widget will display the current month. In some cases though that may be empty – if for instance it is currently February but the next event isn’t until October. In those cases it may be desirable to “wind” the widget forward to the next month that actually contains an event. This can be done by adding the following code to your theme’s functions.php file.

(Please do note that in many cases the opening <?php tag can be ignored.)

]]>http://tri.be/fast-forward-to-the-next-upcoming-event/feed/6WordPress Events Plugin 1.6 Releasedhttp://tri.be/wordpress-events-plugin-1-6-released/
http://tri.be/wordpress-events-plugin-1-6-released/#commentsThu, 27 May 2010 07:10:53 +0000http://tri.be/?p=684This release was quite the adventure and a major work for all the contributors. Huge thanks go out to Justin Endler and Kelsey Damas took the role of batman so that I could play Robin. The community was super active and we thank you for all your support, bug reports and more. For all you who predominant speak other languages, we got quite a few new translations submitted. Over the next weeks, we will watch the forums and do a few small dot releases to fix bugs. Please don’t post requests for help here (I’ll ignore them), use the WordPress Forum.

This will be the last major open source release on this plugin for a short while. We are exploring the possibility of converting this to a premium plugin and will let you all know quite soon what we decide. Work on 1.7, which will be released as a premium plugin (custom post types and more) is under way.

* Child Theme support
* iCal Feed of all events now accessible using http://<yourUrlHere>.com/?ical
* Setting to include / exclude events form general loop
* Subcategories in events now behave properly! (and include some css for your creative endeavors)
* Get Events function no longer starts its own loop (significantly reduce conflicts with other plugins)
* Added class to current day
* PHP versions older than 5.1 will fail gracefully
* Uninstall file
* Calendar grid view now honors ‘posts_per_page’ wordpress setting.
* Calendar grid view now has “previous” and “next” month links
* Widget now has options to control behavior when there are no events to display
* Updates to widget layout (links to events and “read more”)
* It is now possible to select no default country for events
* Added a setting to control “pretty urls” to the events vs using query args (reduce conflicts with other rewrite rules)
* Default times for new event updated (all day, starting tomorrow)

* Improvements to field validation
* Fixes Embedded Map HTML URL Encoding so its w3c compatible (Thanks azizur!)
* Usability issue: Is this post an event? Yes/No — now you can click the text and it will select your choice. (Thanks azizur!)
* Fixes drag/drop issue (Thanks azizur!)
* State vs Province meta values were not mutually exclusive
* HTML was not properly escaped in the template
* Fixes PHP short tag issue in one of the templates
* in single.php, the Back to Events link no longer strictly goes to the grid view, but adheres to the default few option -pointed out by azzatron on the forum
* google map link is now produced with minimal information, complete address is no longer needed, W3C-compatible output
** tec_event_address() added for easy echoing of the event address
** thanks to AntonLargiader and azizur on forum
* improvement and debugging of entire error catching and displaying system
* Fixes upcoming/past sorting issue (Thanks Elliot Silver for the support!)