• Hi there,

    Thank you for an amazing plugin!

    We use underscore ( _ ) in some of our SKU’s (ex. MT_RV) and I noticed it’s not possible to search for these SKU’s, so I guess they are filtered out somehow.

    Is there a way to keep these, so we can continue to use underscore in our SKU’s?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Oh, I wish more people had the sense to give a good review before asking for support ??

    Here’s how you fix this. Add this to your theme functions.php:

    add_filter( 'relevanssi_punctuation_filter', 'rlv_adjust_punctuation' );
    function rlv_adjust_punctuation( $replacements ) {
        $replacements['_'] = '';
        return $replacements;
    }

    Once you rebuild the index, everything should work.

    Thread Starter mindthetrash

    (@mindthetrash)

    Thanks a lot! It works like a charm ??

    I wish there were more WP plugins build as well as this!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Keep underscore with SKU’ is closed to new replies.