WordPress.org

Ready to get started?Download WordPress

Forums

Event Organiser
Can't get calendar events to list on a separate page (Called 'Classes') (6 posts)

  1. HopkinsWeb
    Member
    Posted 1 year ago #

    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:
    http://www.hopkinsartscenter.com/tickets-events/calendar/

    but we need it to then list the events on this page below the paragraph here: http://www.hopkinsartscenter.com/tickets-events/classes/. 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.
    Help!!

    http://wordpress.org/extend/plugins/event-organiser/

  2. Anton
    Member
    Posted 1 year ago #

    All I know is that calling it using eventorganiser_list_events(false) avoids the error for me.

  3. Stephen Harris
    Member
    Plugin Author

    Posted 1 year ago #

    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: https://github.com/stephenharris/Event-Organiser/blob/1.7/classes/class-eo-event-list-widget.php#L125

    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.

  4. HopkinsWeb
    Member
    Posted 1 year ago #

    Hello!

    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: http://www.hopkinsartscenter.com/tickets-events/classes/

    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!

  5. Stephen Harris
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  6. HopkinsWeb
    Member
    Posted 1 year ago #

    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]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic