WordPress.org

Support

Support » Requests and Feedback » [Plugin: Gigs Calendar] Convert next-widget.php to display last happened event

[Plugin: Gigs Calendar] Convert next-widget.php to display last happened event

  • Hi,

    I am using the plugin for events and I want to add pictures to the past events, of course this is easy, but now I would like to have a widget that displays the last happened event so people can easily find the last happened event and look at the pictures and read the story of the event.

    I am NOT using the next-widget.php so my idea was to convert that widget to display the last happened event instead of the next, future event.

    I am guessing that I need to change code

    <?php if ( count($gigs) ) : $g = $gigs[0]; ?>

    Only I do not know into what it needs to be changed…
    I have tried this, but that doesn’t work
    <?php if ( count($gigs) ) : $g = $gigs[-1]; ?>

    Anybody any idea how to convert next-widget.php so that it will display the last happened event?

    Thanks,
    Paul

  • The topic ‘[Plugin: Gigs Calendar] Convert next-widget.php to display last happened event’ is closed to new replies.
Skip to toolbar