Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Did you see the comment in that thread after the code? They said it was the apostrophe in “Fred’s” that was causing issues…

    The important part of that thread is this part:

    $event_args = array(
        'numberposts' => 5,
        'orderby' => 'eventstart',
        'order' => 'ASC',
        'event_end_after' => 'today',
    );
    $events = eo_get_events($event_args)

    (Or it can be used WP_Query().).

    The code given in that thread does what you want to, but its just that it seems there are some syntax errors in it…

    Thread Starter Alkorr

    (@alkorr)

    I haave modified the apostrophe at first, but it was the PHP I had to add on 1st line and last (and in between) that I got wrong.

    Works fine now, thanks again! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Show upcoming event’ is closed to new replies.