Support

Home Forums Event Espresso Premium Upcoming events showing expired events

Upcoming events showing expired events

Posted: July 4, 2024 at 1:17 pm

Viewing 6 reply threads


pathwise

July 4, 2024 at 1:17 pm

Hi there,

We have a custom block showing upcoming events in the sidebar that uses the shortcode show_expired=false to hide all past events. Recently all events including expired events have started showing in this section and I’m wondering if you might have some ideas on why this has stopped working. Below is an example of how it is used..

[ESPRESSO_EVENTS category_slug=experimental-design show_expired=false order_by=start_date sort=ASC show_title=false class=item]

I’m not sure if this is useful but Event Espresso > Events > Templates > Event List Pages
Display Expired Event is set to “No”

If you require any further information please let me know.


Rio

  • Support Staff

July 4, 2024 at 5:22 pm

Do you see any error log? https://eventespresso.com/wiki/troubleshooting-checklist/
You can enable the log then go to the page that has problem and refreshed. The log will be generated and you can share the log to us.

thanks


pathwise

July 5, 2024 at 9:42 am

Hi Rio,

Thanks for the quick response. When I refresh the one of the pages the following is the error that I receive. Cheers.

[05-Jul-2024 15:32:54 UTC] PHP Notice: Function is_archive was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/nrtraininggroup/public_html/wp-includes/functions.php on line 6078
[05-Jul-2024 15:32:54 UTC] PHP Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/nrtraininggroup/public_html/wp-includes/functions.php on line 6078


Sam

  • Support Staff

July 5, 2024 at 12:36 pm

Hi John,

The PHP notice is not something responsible for the issue.

Can you please share a direct link to the page so that we can check?


pathwise

July 5, 2024 at 5:12 pm

Hi Sam,

here is a link to the page.
https://nrtraininggroup.com/course-descriptions/avian-nest-sweeps-and-monitoring-methods/

We currently have a script that is hiding old events. Under Upcoming courses there is pagination indicating page 1 and 2. Page 1 contains the hidden events and page 2 has one upcoming.


Rio

  • Support Staff

July 6, 2024 at 2:12 am

We currently have a script that is hiding old events. Under Upcoming courses there is pagination indicating page 1 and 2. Page 1 contains the hidden events and page 2 has one upcoming.

I wonder if this causing the issue, is that the debug log pointing too?

[05-Jul-2024 15:32:54 UTC] PHP Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/nrtraininggroup/public_html/wp-includes/functions.php on line 6078

What happen if you try to comment out that code block, does it resolve your issue?

thanks


pathwise

July 8, 2024 at 4:13 pm

Thank you for getting back to me. If I comment out that code I am still seeing the expired events. show_expired=false still seems to not be recognized.


Rio

  • Support Staff

July 8, 2024 at 6:27 pm

Can you send us direct link to that page? then fill this form for us to check,

https://eventespresso.com/send-login-details/

thanks

Viewing 6 reply threads

You must be logged in to reply to this support post. Sign In or Register for an Account

Event Espresso