Search Registered Valuers
‘meta_value’,
‘metakey’ => ‘First Name:’,
‘metakey’ => ‘Surname:’,
‘order’ => ‘ASC’,
‘post_type’=> ‘valuers’,
‘meta_query’ => array(
array(
‘key’ => $searchType,
‘value’ => $_GET[‘s’],
‘compare’ => ‘LIKE’
)
)
);
query_posts($args);
if(!empty($_GET[‘s’]) || have_posts())
{
/* Run the loop to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-search.php and that will be used instead.
*/
$more = 0;
get_template_part( ‘includes/loop’, ‘registered’ );
}
?>

