Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codearachnid/d935c0a2da25a651071e to your computer and use it in GitHub Desktop.
Save codearachnid/d935c0a2da25a651071e to your computer and use it in GitHub Desktop.
Thanks to Jared at https://theeventscalendar.com/support/forums/topic/date-filters-no-longer-working-with-latest-version-of-ecp-solution/ there is a fix for the latest version of TEC core+PRO to allow date filtering to work again
<?php
// look at line 69 and change
$field = 'eventStart.meta_value';
// to
$field = 'tribe_event_start_date.meta_value';
/**********/
// look at line 69 and change
$field = 'eventEnd.meta_value';
// to
$field = 'tribe_event_end_date.meta_value';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment