Support » Plugin: Event Organiser » Can't get calendar events to list on a separate page (Called 'Classes')

  • I am fairly new to this as well, and took over for someone who had built this WordPress site.

    I am trying to maintain this site that uses this plugin. We have our calendar of events here:

    but we need it to then list the events on this page below the paragraph here: It used to have them listed out by Title of Event and then begins on “date”.

    I tried to go into her code, and went to the plug in, and tried to work with the class-eventorganiser-shortcodes.php and think I messed it up. For a while I was having the error on one of the lines in the shortcodes sections, where on the web it gave me this error:

    Fatal error: Call to undefined function eventorganiser_list_events() in /home/content/38/7854538/html/beta/wp-content/plugins/event-organiser/classes/class-eventorganiser-shortcodes.php on line 195,
    and I went to that line and it says:

    return eventorganiser_list_events( $atts,$args, 0);

    Then I try to add something in after ‘return’ and it makes most of the page go back to normal.

    I am trying to figure out what I am missing to make it work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • All I know is that calling it using eventorganiser_list_events(false) avoids the error for me.

    I’d recommend against using it though – its not intended to be a public function and may be modified/removed in the future (though I have no plans to currently).

    You can find it in the source here:

    As you can see it requires one argument – a query array (the same as you would give to WP_Query,get_posts() or eo_get_events() – to determine which events should be listed.

    @hopkinsweb – as for your original problem, I’m afraid I can’t really help if someone has altered the code.


    Thank you for getting back to me. I got it back so that it showing all the events, but now it is listing every single event (if the event is recurring. Most, if not all of our events are set as recurring events from January 2013-May 2013, so every class is now listed here:

    Any idea why that is happening? I am so glad the classes are back, so this (the recurring problem) is the last thing I need to figure out.

    Thanks so so much!

    Try ‘group_events_by=”series”‘ attribute for the shortcode (I assume you’re using the [eo_events] shortcode ?). It will only list the date of the next occurrence.

    I am using this code on that specific wordpress page:

    [eo_events event_category=”community-ed”]%event_title% begins %start{M j, Y}%[/eo_events]

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't get calendar events to list on a separate page (Called 'Classes')’ is closed to new replies.