Title: Include &amp; inside titles?
Last modified: June 24, 2022

---

# Include & inside titles?

 *  [squidg](https://wordpress.org/support/users/squidg/)
 * (@squidg)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/include-inside-titles/)
 * 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](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/include-inside-titles/#post-15766169)
 * 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.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=3529670)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/include-inside-titles/#post-15766169)
 * Status: not resolved