Support

Home Forums Event Espresso Premium Simple list of past events

Simple list of past events

Posted: September 23, 2022 at 6:37 pm

Viewing 4 reply threads


OTLSeatFillers

September 23, 2022 at 6:37 pm

Hi! I’m trying to add a page with just a simple list of past events (no image or description) – just the event and date, if possible.

I saw a forum that included a link to this espresso past events shortcode in github – https://gist.github.com/joshfeck/2f8c67a51ebeec117c7dc3a5cb4e0051

That format would be great, except it’s not working for me. Even though I have hundreds of past events, the shortcode [espresso_past_events] is only generating one single event on the page.

Not sure if I did something wrong – I downloaded the zip and uploaded it as a plugin, and then put the shortcode on the page. But again, it just shows one single event.

Is there another solution?

Thanks!


Tony

  • Support Staff

September 26, 2022 at 5:00 am

Hi there,

It doesn’t sound like you did anything wrong, I’ve just done exactly the same and got back multiple pages of events (there is a limit of 100 events set on in that code).

Any errors being thrown on the page?

Can you link me to the page you are using the shortcode on?
(I’m not sure how much that will help, but I’ll happily look)


OTLSeatFillers

September 26, 2022 at 2:45 pm

Hi Tony,
Thanks for checking into this. I’m stumped. I can’t figure out how to get you a screenshot, but what I see is on this page:

https://otlseatfillers.com/recent-past-events

All I see is a single event (that I believe was a test event in London).

Just to make sure I completed the process right:

1. I went to the github page, and toward the top right, I clicked download zip.

2. I uploaded that zip file to plugins on the site.

3. I built a new page and used the shortcode [espresso_past_events]

4. I tried it in a block, out of a block, standing on my head… and I only see a single event on the published page.

5. I also thought it might be tied into categories, as our events are categorized per city (Atlanta, austin, boston, etc.) But when I added the category info to the shortcode, the page is totally blank
[espresso_past_events category_slug=austin,atlanta]

Any suggestions?

Thanks again!
Lu –


OTLSeatFillers

October 5, 2022 at 12:09 pm

This reply has been marked as private.


Tony

  • Support Staff

October 14, 2022 at 2:41 pm

Hi there,

Just adding some notes to this ticket fr future readers.

This issue was caused by using this code:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/templates/de_ee_filter_events_out_with_expired_tickets.php

Which filters out expired events from EE queries.

So the above is querying to pull expired events, whilst the above is hooking into the EE queries to filter out expired events.

Adding:

remove_filter( 'posts_where', 'de_ee_tweak_event_list_exclude_ticket_expired_events_where', 15);
remove_filter( 'posts_join', 'de_ee_tweak_event_list_exclude_ticket_expired_events_join', 3);

To remove those additional filters from that query fixed the expired event list.

Viewing 4 reply threads

The support post ‘Simple list of past events’ 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