Relevanssi - A Better Search
[resolved] Nothing I do will hightlight my search terms - stumped! (4 posts)

  1. kato
    Posted 5 years ago #

    I am getting no highlighting on search results.

    * "Create custom search result snippets" is checked
    * "Highlight query terms in result titles too" is also checked
    * I've tried all the different highlighting options: strong, background-color, CSS class, etc
    * and I've rebuilt the index since changing the options.

    Also, the_excerpt() is used, and correctly displayed, from my search.php file in the template.

    I really can't think of what could be causing the problem. Any ideas?



  2. Mikko Saari
    Plugin Author

    Posted 5 years ago #

    I'm guessing you've got a call to query_posts() on your search results template, thus making Relevanssi inactive.

  3. kato
    Posted 5 years ago #

    You are RIGHT!

    Thanks for responding. I didn't realize that would kill Relevanssi.

    When I swapped out my complicated search.php with a stock search.php, it worked just fine, thanks!

  4. Mikko Saari
    Plugin Author

    Posted 5 years ago #

    Great, I marked this resolved.

    This is something I should probably add to the readme file.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Relevanssi - A Better Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic