PostX Pro
…Add this function to your site: add_action( ‘pre_get_posts’, function( $query ) { if ( $query->is_search() && isset( $query->query_vars[‘s’] ) ) { $query->set( ‘relevanssi’, true ); } } ); This function is attached to all queries with the pre_get_posts hook. If the query is a search query (the search term parameter…
Read more PostX Pro 0 Comment on PostX Pro