WordPress.org

Ready to get started?Download WordPress

Forums

Google Calendar Widget
showing past events (3 posts)

  1. rodmusic
    Member
    Posted 1 year ago #

    Is there a way make this widget show past events?

    Rod

    http://wordpress.org/extend/plugins/google-calendar-widget/

  2. rodmusic
    Member
    Posted 1 year ago #

    OK, I figured it out. In the plugin code:
    query.setFutureEvents(false);

    This shows all events past and future: http://rodmusic.com/calendar
    Any way to show just past events. Combining that with
    query.setSortOrder('ascending'); would be a great way to display past events with the most recent events at the top.

    Having some sort of shortcode for the options would be extremely cool. Short of that I could have 2 versions of the plugin installed and use the one that gives me the desired effect.

    Any ideas, anyone?

  3. rodmusic
    Member
    Posted 1 year ago #

    Sorry, above should be
    `query.setSortOrder('descending');'
    to show older events first

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic