Support

Home Forums Event Espresso Premium Custom Template Bug

Custom Template Bug

Posted: January 4, 2015 at 4:27 pm

Viewing 3 reply threads


Susan Perry

January 4, 2015 at 4:27 pm

Hello EE4 Support,

We upgraded to EE4 4.4.8 and the custom template which Lorenzo made for us which can be seen at:

https://eventespresso.com/topic/ee4-custom-template-add-on-bug/

Is now showing duplicate events, this behaviour can be seen at:

https://safetycoursesforkids.com/children-safety-courses/red-cross-babysitting-course/

The courses are also still now showing in ascending order (first date to start) showing first and no one has gotten back to our ticket which can be seen at:

https://eventespresso.com/topic/list-sub-events-on-ee4-course-listing-page/

Please help us finally get this system working the way we need it to.

Thanks for your help.


Tony

  • Support Staff

January 5, 2015 at 7:01 am

Hi Susan,

If you go to eea-events-table-template/EES_Espresso_Events_Table_Template.shortcode.php

On line 270 you will find:

add_filter( 'posts_orderby', array( $this, 'posts_orderby' ), 10, 1 );

Under that add this:

EE_Registry::instance()->load_helper( 'Event_Query' );
add_filter( 'posts_clauses_request', array( 'EEH_Event_Query', 'posts_clauses' ), 10, 2 );

That remove duplicate events when an event has multiple upcoming datetimes.

We will be including this fix in the next version of the Template Add-on so it is safe to modify the core file in this instance as when replace with the update the same modification is included.


Susan Perry

January 5, 2015 at 7:25 am

Thank you so much Tony!


Lorenzo Orlando Caum

  • Support Staff

January 5, 2015 at 7:35 am

Hi, did this fix the issue with your template add-on? If so, could you update the status to resolved?


Lorenzo

Viewing 3 reply threads

The support post ‘Custom Template 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