Can't search Chinese in my web

This topic contains 20 replies, has 5 voices, and was last updated by  M Jin 6 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #441456

    M Jin
    Free User
    Post count: 12
    This reply has been marked as private.
    #441476

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #441544

    M Jin
    Free User
    Post count: 12
    This reply has been marked as private.
    #441569

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #441637

    Kiran
    Moderator
    Post count: 7069

    Hello,

    To enable single character search, do following things.
    1) Selected “Disabled” from GeoDirectory > Search > Individual word search limit
    2) Add following code snippet via PHP snippet plugin or in your child theme functions.php file.

    
    
    function _gd_custom_single_character_search( $where, $keywords, $keyword ) {
    	global $wpdb;
    
    	$where = ' OR ( ' . $wpdb->posts . '.post_title LIKE "%' . $keyword . '%" )';
    	return $where;	
    }
    add_filter( 'geodir_search_better_search_terms', '_gd_custom_single_character_search', 10, 3 );

    Thanks,
    Kiran

    #441661

    M Jin
    Free User
    Post count: 12

    It fixed!
    Thank you very much for your help
    M Jin

Viewing 6 posts - 16 through 21 (of 21 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount