Support

Home Forums Event Espresso Premium EVENT_LIST shortcode bug?

EVENT_LIST shortcode bug?

Posted: July 11, 2012 at 6:13 am


Roger

July 11, 2012 at 6:13 am

  I have a member-side home page on my (development) site that uses the following simple shortcode to display the next upcoming event on the calendar.

[EVENT_LIST limit=1]

  Up to now, this shortcode has worked fine (no reason it shouldn’t), but this morning, it stopped displaying the next event. Here are the details…

  The next event in the calendar is a member-only event scheduled to take place today from 3:00 to 4:30pm (the time right now is 7:00am). This event has been the “next event” for the last few weeks and has been displayed on the home page using the [EVENT_LIST limit=1] shortcode.

  Registration for the event ended last night at 11:59pm, at which time the event changed from OPEN to CLOSED. At that time, instead of beginning to display the following “next event” — a public event scheduled in two weeks — the shortcode simply stopped displaying anything at all on the page.

  To get the page to display an event, I must either: a) change the shortcode to
[EVENT_LIST limit=2]
in which case it shows only ONE event (the upcoming public event)
  or b) change the registration parameters for today’s event so that it becomes OPEN.

SUMMARY: The shortcode is not operating as designed and automatically showing the next OPEN event if today’s event is CLOSED.

The site is still in development, so I am not in panic mode, but I do not want to have to discover/develop workarounds to this when the site goes live.
Please advise. Thanks.


Josh

  • Support Staff

July 11, 2012 at 7:47 am

Which version number of Event Espresso Roger?


Roger

July 11, 2012 at 7:52 am

Josh,

When I first noticed it this morning, I was running 3.1.24.P.

I have since updated to 3.1.24.1.P — and the problem persists.

Roger


Josh

  • Support Staff

July 11, 2012 at 10:03 am

I’ve mentioned this to the dev team. There might be something like a [NEXT_EVENT] shortcode that could be created that would be designed to show only the next event available for registration.

For the showing the next available event, the upcoming events widget (set to show 1 event) should work for your purposes. If you can display widgets on your home page, you might try that.


Roger

July 11, 2012 at 10:55 am

Josh
Thanks.
Can you explain why the code I’ve been using has run into trouble and does not work in this case? It seems like it should.
I’m simply specifying that Event Espresso should display the next 1 event with no category specification. Why does that not work here?
Roger


Roger

July 11, 2012 at 10:56 am

And it has been working well for quite a while. It only ran into trouble in the specific case where the next event (today’s) is closed for registration. Why would it not simply display the next event in the calendar?


Josh

  • Support Staff

July 11, 2012 at 12:26 pm

Because the event hasn’t taken place yet.


Roger

July 11, 2012 at 1:45 pm

I don’t understand your last note.
I thought that was the point of the EVENT_LIST shortcode… to display events that have not taken place yet.
Are you saying that if the next scheduled event is CLOSED to registration, then the EVENT_LIST shortcode will not display it… and will also not display the next OPEN event? If so, is there a way to specify the EVENT_LIST shortcode (via a parameter) so that it displays the next scheduled event, regardless of whether or not its registration is CLOSED?


Josh

  • Support Staff

July 11, 2012 at 1:55 pm

There isn’t, which is why I recommended using the upcoming events widget.


Roger

July 11, 2012 at 2:01 pm

I don’t have a sidebar on the pages where I’m displaying the upcoming events.
Can I use the widget on a static page without a sidebar? And if so, where will I find documentation on how to do so?


Josh

  • Support Staff

July 11, 2012 at 2:18 pm

Widgetized areas can be added just about anywhere. Here’s one tutorial that walks through how to create a new widget area: http://designisphilosophy.com/tutorials/creating-new-widgetized-areas/

The support post ‘EVENT_LIST shortcode bug?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso