Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hi,

    Sure, you can remove any of this special characters. Please try to use folowing code to remove ampersand from the list of stripped chars:

    add_filter( 'aws_special_chars', 'my_aws_special_chars' );
    function my_aws_special_chars( $chars ) {
        unset( $chars[array_search( '&amp ;',$chars )] );
        unset( $chars[array_search( '&',$chars )] );
        return $chars;
    }

    please remove space in '&amp ;'

    • This reply was modified 4 years, 5 months ago by ILLID.
    • This reply was modified 4 years, 5 months ago by ILLID.
    Thread Starter jone-rocks

    (@jone-rocks)

    @mihail-barinov thanks for the quick support.

    Unfortunatly it doesn’t work: https://wordpress.p514187.webspaceconfig.de/shop/

    Use “D&F1565” in the search field on the upper right.

    Plugin Author ILLID

    (@mihail-barinov)

    Forget to mention – please re-index the plugin table after adding this code.

    Thread Starter jone-rocks

    (@jone-rocks)

    @mihail-barinov plugin table was re-indexed. Still not working.

    Also after commenting out the relevant lines in advanced-woo-search/includes/class-aws-helpers.php (for testing purpose) it is not working.

    Any idea?

    Thread Starter jone-rocks

    (@jone-rocks)

    @mihail-barinov Any solution for that?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Allow ampersand in search’ is closed to new replies.