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

    (@msaari)

    Add this to your theme functions.php:

    add_filter( 'relevanssi_modify_wp_query', function( $query ) { $query->set( 'orderby', 'relevance' ); } );

    Does that fix the problem?

    Thank you for your reply. However, adding that to functions.php did not help. Actually, it made all searches result in “no posts found”.

    Still hoping you can assist.

    Thank you.

    Plugin Author Mikko Saari

    (@msaari)

    It was missing the return:

    add_filter( 'relevanssi_modify_wp_query', function( $query ) { $query->set( 'orderby', 'relevance' ); return $query; } );

    This should work better.

    Perfect! Thanks so much.

    Debbie

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Results order Divi Extra Theme’ is closed to new replies.