• Is it possible to include the & inside titles?
    For example if a post tile is E & E PostName, when I check this page with the debugger it only shows PostName and skips the E & E bit. I’m guessing the same issue occurs when I try to add it in Synonyms (e & e bit gets ignored)

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

    (@msaari)

    You can make Relevanssi keep ampersands from the advanced indexing settings. However, that does not help with “E & E”, because Relevanssi still won’t index single letters, the minimum word length is three characters. You can adjust the minimum word length, but setting it to 1 is not a good idea.

    The best solution would be to modify the post content for Relevanssi indexing, so that when Relevanssi sees something like “E & E”, it would get converted into “E&E” for Relevanssi. Like this:

    add_filter( 'relevanssi_remove_punctuation', 'rlv_adjust_titles', 8 );
    function rlv_adjust_titles( $str ) {
      $str = str_ireplace( 'e & e', 'e&e', $str );
      return $str;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Include & inside titles?’ is closed to new replies.