• Hi there,

    lovely plugin so far, i like all the options you can use.

    Nevertheless i couldn’t find a way to display the latest event if there is not upcoming event. The point is to do a Welcome page where always, 1 event is showing, either the upcoming or the latest.

    Hope someone could help me out or give a hint.

    Thank you for your time!

    https://www.ads-software.com/plugins/event-list/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter psntr

    (@psntr)

    Ideally I would put this:

    [event-list initial_date=all num_events=1 show_filterbar=false link_to_event=false]

    but as said in the “about page” of the plugin, the num_events, doesn’t work if there you choose initial_date as something different than Upcoming.

    Regarding to have the latest post on top (as mentioned in this topic: here

    I did what MKlein Web Design did, but I found them in line 160-162, so by changing the expression to:

    $sort_array = array( ‘start_date DESC’, ‘time ASC’, ‘end_date ASC’ );

    it worked, i have the latest event show on the top.

    But still… Now how to show only one event when initial_date is set as all rather than upcoming?

    Plugin Author mibuthu

    (@mibuthu)

    If you want to enable num_events attribute for event lists others than upcoming you have to remove the following lines in includes sc_event-list.php (lines 149-152):

    // specify to show all events if not upcoming is selected
    if('upcoming' != $a['actual_date']) {
    	$a['num_events'] = 0;
    }

    minuthu –

    i have tried deleting those lines of code…however the list still does not honor the number of entries specified.

    here is the custom code i am using:

    [event-list initial_date=2015 num_events=4 show_filterbar=false]

    as you can see from this page: https://angelarye.com/
    five events are listed which represent all of the 2015 events
    the designation of “4” is not working.

    help?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘If no upcoming, show latest events’ is closed to new replies.