Thank you for your reply. I just wanted to know if there was a way to do it directly from Cornerstone.
I’m leaving the solution here in case anyone else has this question:
You have two options:
1. The one that doesn’t need coding:
Install the plugin named:
Search Exclude by Roman Pronskiy
2. Place the following code into your theme’s functions.php file:
//Alter the WordPress search to return ONLY posts, no pages
if (!is_admin()) {
function search_filter_posts($query) {
if ($query->is_search) {
$query->set('post_type', 'post');
}
return $query;
}
add_filter('pre_get_posts','search_filter_posts');
}