Found the solution:
I just added the following code to the latest-post-shortcode.php file:
function exclude_category($query) {
if ( $query->is_feed || $query->is_home ) {
$query->set(‘cat’,’-xx,-xx’);
}
return $query;
}
add_filter(‘pre_get_posts’,’exclude_category’);
Thanks!