Hi..,
Sorry I didn’t find an answer to my problem:
I want certain categories (e. g. projects) not to appear on the blog page.
I used this function incorrectly:
add_filter('pre_get_posts', 'excludeCat');
function excludeCat($query) {
if ( $query->is_blog ) {
$query->set('cat', 'projets');
}
return $query;
}
Yes, but it doesn’t work. By which I replace “is_home” as I am the blog page?. And the’3, 5 and 23′ I replaced them with the project categories (name of my category of articles)
Thank you very much! Sorry I was missing some elements but with these explanations I understand. It works well. This is my first site with this theme which is very good for customization