function ReplaceSearchQuery($query) {
if ($query->is_search) {
$query->set('post_type', 'post');
}
return $query;
}
add_filter('pre_get_posts','ReplaceSearchQuery');

INSTANT CONSULTATION REQUEST

Please fill in your brief details and we will get in touch at the earliest with a solution.