Multiple Meta key in search

You will need to switch between using query_posts (not recommended), to using WP_Query.

Using WP Query is similar to query_posts, you will pass an array of arguments, and include the meta_query args. Something like:

$args = array(
    'posts_per_page' => 1,
    'no_found_rows' => true,
    'post_type' => 'rrf-result',
    'rrf_result_year' => wp_unslash( ( string ) $_POST['result_year'] ),
    'meta_query' => array(
        'relation' => 'OR',
        array(
            'key' => 'roll',
            'value' => wp_unslash( ( string ) $_POST['search'] ),
        ),
        array(
            'key' => 'info_3',
            'value' => wp_unslash( ( string ) $_POST['search'] )
        )
    ) 
);



$results = new WP_Query($args);

If you have any results, you can access them by manually looping through $results->posts or by using the wordpress methods:

if($results->have_posts()):
    while($results->have_posts():
        $results->the_post();
        // do something here
    endwhile;
endif;

In your case I don’t know exactly what you need because you are including another template part, and I don’t know what’s in it. I am also not sure if the plugin you are using modifies the query in any way.

error code: 523