WP search automatically replaces lithuanian characters to standart (ą => a, č => c, ę = > e). How to disable this auto replacing?
For example: when I type "č" in search field, I also get results with "c" like "Asus Acer".
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityTry to change collation with the following code in functions.php
add_filter( 'posts_search_orderby', 'alter_query', 20, 2 );
function alter_query( $orderby, $query ) {
return $orderby . ' COLLATE latin1_general_ci';
}