• Resolved beazambeaux

    (@beazambeaux)


    Hi with a search page result with a postX template the search gives no result. I deactivate it bu I want to use it if possible. Do you have a workaround ? I tried to add the following code in my ‘function.php’ file but this did’nt work : (I miss something ?)

    add_action( ‘pre_get_posts’, function( $query ) {

           if ( isset( $query->query_vars[‘s’] ) ) {

                 $query->set( ‘relevanssi’, true );

           }

    } );

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Relevanssi not working with PostX free’ is closed to new replies.