Title: Theme not using Relevanssi
Last modified: May 30, 2023

---

# Theme not using Relevanssi

 *  Resolved [appleasha](https://wordpress.org/support/users/appleasha/)
 * (@appleasha)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/theme-not-using-relevanssi/)
 * I will preface this by saying I am not very computer-savvy, but I am not sure
   where else to get help from.
 * The Relevanssi plugin used to work just fine on my site. Recently I noticed the
   search results are completely off, and the results that are shown on my live 
   site are not what are shown when I do an admin search.
 * A specific example: I have a post titled “Dreamy ideas for floral wedding decor”.
   Even if I search this exact title, the post does not get displayed until the 
   27th search result. I have the weight for title match set higher than anything
   else. When I use an admin search, the post shows up as the first result like 
   it should.
 * I’m not sure how long this has been a problem for, I’m just noticing it now. 
   I have reindexed all posts with no change. As far as I can tell, no other plugins
   are interfering with the search function. I don’t know how to make sure that 
   my theme is showing the results from Relevanssi like it does in the admin search.
   I am using Showit as my theme.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftheme-not-using-relevanssi%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/theme-not-using-relevanssi/#post-16781430)
 * Looks like something may be overriding the post order, as I can get the “Dreamy
   ideas” post to come up first when force the search to order posts by relevance.
 * Add this to your theme functions.php or in a code snippet:
 *     ```wp-block-code
       add_filter( 'relevanssi_modify_wp_query', function( $q ) {
         $q->set( 'orderby', 'relevance' );
         return $q;
       } );
       ```
   
 * This should fix the order of the posts.
 *  Thread Starter [appleasha](https://wordpress.org/support/users/appleasha/)
 * (@appleasha)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/theme-not-using-relevanssi/#post-16784111)
 * Thank you so much, that worked perfectly!! I am so grateful for your help, thank
   you for your response!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Theme not using Relevanssi’ 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/)

## Tags

 * [relevance](https://wordpress.org/support/topic-tag/relevance/)

 * 2 replies
 * 2 participants
 * Last reply from: [appleasha](https://wordpress.org/support/users/appleasha/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/theme-not-using-relevanssi/#post-16784111)
 * Status: resolved