Posted: 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 If you require any further information please let me know. |
|
Do you see any error log? https://eventespresso.com/wiki/troubleshooting-checklist/ thanks |
|
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 |
|
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? |
|
Hi Sam, here is a link to the page. 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?
What happen if you try to comment out that code block, does it resolve your issue? thanks |
|
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. |
|
Can you send us direct link to that page? then fill this form for us to check, https://eventespresso.com/send-login-details/ thanks |
|
Apologies for the delayed response. I believe we have sorted out the issue. |
|
You must be logged in to reply to this support post. Sign In or Register for an Account