Posted on

WP Event Manager

Using Relevanssi with WP Event Manager requires you to adjust the search process in WP Event Manager a bit. Fortunately the plugin has good filters you can use. Just add this to your functions.php:

add_filter( 'get_event_listings_query_args', function( $args ) {
  $args['relevanssi'] = true;
  return $args;
} );

This will adjust the event listing query arguments to switch on the Relevanssi flag, causing Relevanssi to process the results. This way you’ll get the Relevanssi results in the WP Event Manager event listing search. These Relevanssi results will also be cached by the WP Event Manager query caching.

Thanks to dustyyy on WP support forums.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.