WordPress.org

Ready to get started?Download WordPress

Forums

Ajax Event Calendar
[resolved] Most Recent Events (9 posts)

  1. amycarolyn
    Member
    Posted 3 years ago #

    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?

  2. Eran Miller
    Member
    Plugin Author

    Posted 3 years ago #

    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

  3. amycarolyn
    Member
    Posted 3 years ago #

    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!

  4. Eran Miller
    Member
    Plugin Author

    Posted 3 years ago #

    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

  5. amycarolyn
    Member
    Posted 3 years ago #

    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.

  6. Eran Miller
    Member
    Plugin Author

    Posted 3 years ago #

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

    Eran

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

  7. ChrisNexus
    Member
    Posted 2 years ago #

    Perfect! Exactly what i was looking for!

  8. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

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

  9. Eran Miller
    Member
    Plugin Author

    Posted 2 years ago #

    Plugin version 0.9.9.1 is now available for download.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic