Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › search with multiple slashes not found eg LT/SB/640/LID › Reply To: search with multiple slashes not found eg LT/SB/640/LID
May 17, 2017 at 5:47 pm
#13141
looking back at my last ticket when I first built the site I see we had a similar issue and you did a fix:
function asp_remove_slash_phrase( $phrase ) {
return ASP_Helpers::clear_phrase( str_replace(“/”, “”, $phrase) );
}
add_filter( “asp_search_phrase_after_cleaning”, “asp_remove_slash_phrase”, 1, 1 );
I’m guessing this only works for the first slash? which is why it works for LT/SB? the code is still in place in my functions.php file. could we have a version that can find more than one / ?