Continue reading The Events Calendar: The event search

The Events Calendar: The event search

…type. Then you can enable Relevanssi in the event search by adding this snippet to your site: add_action( ‘pre_get_posts’, function( $q ) { if ( isset( $q->query_vars[‘post_type’] ) && ‘tribe_events’ === $q->query_vars[‘post_type’] ) { $q->set( ‘relevanssi’, true ); } } ); This function will turn Relevanssi on in all searches……function will stop Relevanssi from interfering with The Events Calendar search. There’s a bug in the current version of Relevanssi (2.18.0 for Premium, 4.16.0 for free version): if you have enabled Relevanssi in admin searches, the event search won’t work. Disable Relevanssi in admin searches to make the search function….

Read more The Events Calendar: The event search 7 Comments on The Events Calendar: The event search
Continue reading Events Calendar: Remove past events from search

Events Calendar: Remove past events from search

If you have events on your site, you might not want to show the past events in the search. This is easy to do with Relevanssi. It can be done in two ways: either you block the past events in indexing or in searching. In most cases, the best solution is to do both. Blocking…

Read more Events Calendar: Remove past events from search 6 Comments on Events Calendar: Remove past events from search