• Resolved Mary

    (@marypop)


    Hi

    Thank you for the great search plugin ??

    I have one problem.
    My custom post type titles (and content) contains special characters like ? or ?.
    Those characters written in search field are not returned anything at search results, although title etc. contains that character.
    Example: I write “?mal” in search field -> nothing. I write “Amal” -> five results.
    Those posts contains “?mal” in title.
    How to fix this?

    Regards,
    Mary

Viewing 6 replies - 1 through 6 (of 6 total)
  • I am having similar issues when using the Greek alphabet on one of my projects and the search being case sensitive.
    When searching for ΕΝΑ, if a product that contains this string in its title will be returned, but products with ενα will not. I thought Ivory was based on the wp default search which is case insensitive.

    While searching through the code of the plugin (it is important to note that I own a license for the plugin) I discovered that in the directory wp-content/plugins/add-search-to-menu-premium/admin/class-is-editor.php on line 18, there is a preg_match field.

    I tried changing the default code from:

    	function is_name( $string ) {
    		return preg_match( '/^[A-Za-z][-A-Za-z0-9_:.]*$/', utf8_encode($string) );
    	}

    To:

    	function is_name( $string ) {
    		return preg_match( "/^[A-Za-z0-9α-ωΑ-Ω ???????????-]*$/", strtolower($string) );
    		//return preg_match( '/^[A-Za-z][-A-Za-z0-9_:.]*$/', $string );
    	}

    But with no luck. The search remains case sensitive.

    • This reply was modified 5 years, 6 months ago by nkot.
    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    I hope you are well today and thank you for your question.

    I have tested it on my test site and it’s working fine for me using the latest version of Ivory Search plugin as displayed in this screenshot https://imgur.com/a/5bMdqdT

    Please make sure that you are using the latest version of the plugin and try resetting the search form on clicking on the reset button.

    Best regards,

    Hello again,
    I tried resetting the search. It does not work for me! Is there anything else I can do?

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    @nkot According to your description and the communication we did on email it seems you are facing a different issue so let’s handle it separately to avoid confusion in this thread.

    Could you please reply to your existing email communication or create a separate topic?

    Thread Starter Mary

    (@marypop)

    Thank you @vinod-dalvi

    It works now ??

    Regards,
    Mary

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    You are most welcome here ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Difficulties with nordic letters’ is closed to new replies.