Support

Home Forums Event Espresso Premium show_expired' => FALSE not working

show_expired' => FALSE not working

Posted: February 21, 2018 at 11:07 am

Viewing 2 reply threads


Rob

February 21, 2018 at 11:07 am

I have inherited a website using Event Espresso and the show expired is not working correctly. This is the page: http://www.triangleilg.org/ under upcoming events there is an event showing that is past (November 17, 2017)
This is code been used:

https://gist.github.com/lorenzocaum/d025de4acb6250f8ff4f967fe9e1e01e

And the the shortcode is called on the page:


<?php echo do_shortcode( '[events]' ); ?>

Any help would be appreciated, I am new to Event Espresso!


Josh

  • Support Staff

February 21, 2018 at 2:00 pm

Hi Rob,

You’ll need to change this line of code:
$custom_q = new EE_Event_List_Query( $qatts );

to be:

$custom_q = new \EventEspresso\core\domain\services\wp_queries\EventListQuery( $qatts );


Rob

February 21, 2018 at 2:11 pm

Thank you so much, that fixed it!

Viewing 2 reply threads

The support post ‘show_expired' => FALSE not working’ 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