Created
November 7, 2018 17:39
-
-
Save msaari/dd4f929d97b2c83cc59c1b6e6bb1fa16 to your computer and use it in GitHub Desktop.
Remove slashes when indexing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Add this to theme functions.php and rebuild the index: | |
| add_filter('relevanssi_punctuation_filter', 'rlv_handle_slashes' ); | |
| function rlv_handle_slashes( $replacements ) { | |
| $replacements['/'] = ''; | |
| return $replacements; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment