I only want the latest post from the category to be excluded from the front page. All others from the same category should be displayed. I can't seem to figure this one out. Here's what I got so far but it excludes the entire category from the front page.
function exclude_category2($query) {
if ( $query->is_home ) {
$query->set('cat', '-1,-4,-36');
}
return $query;
}
add_filter('pre_get_posts', 'exclude_category2');
Thanks for the help!