Support » Plugins and Hacks » Event Calendar » [Plugin: Ajax Event Calendar] Most Recent Events

  • Resolved amycarolyn

    (@amycarolyn)


    I want to show the most recent 4 events rather than all events for a specified time period. The widget doesn’t have this option. Is there a PHP include with variables to implement it this way?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Eran Miller

    (@eranmiller)


    No, but I’m unclear. By most recent, do you mean the last 4 events prior to today or the next 4 events subsequent to today?

    This change, while not difficult, would require a change to the database query.

    Eran

    The next 4 upcoming events (or whatever number) as opposed to choosing all events in a specified timeframe (like in the widget). So that I don’t run into the section having anywhere from no posts to 100 posts depending. I had been using another calendar that is very buggy, this one is so much nicer!

    Plugin Contributor Eran Miller

    (@eranmiller)


    In that case, if you can wait for a few weeks I will be updating the plugin to limit the display of events (between 2 and 20 events) in the upcoming events widget.

    In the meantime, you can adjust the query in the widget-upcoming.php
    by modifying the following line:
    ' ORDER BY start;'

    to this:
    ' ORDER BY start LIMIT 4;'

    Eran

    Thanks for this Eran! In my current work environment we have a no plugin edits rule, I think I can make do until your next update. Amazing response time on this.

    Plugin Contributor Eran Miller

    (@eranmiller)


    That’s a good policy!
    Glad I could help.

    Eran

    Please help support the plugin by rating it and voting for compatibility

    Perfect! Exactly what i was looking for!

    Plugin Contributor Eran Miller

    (@eranmiller)


    A new beta has been released for those interested in testing and confirming that it works see this post for details.

    Plugin Contributor Eran Miller

    (@eranmiller)


    Plugin version 0.9.9.1 is now available for download.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Ajax Event Calendar] Most Recent Events’ is closed to new replies.