function wpb_exclude_from_home($query) { if ($query->is_home() ) { $query->set('post__not_in', array(40591)); } } add_action('pre_get_posts', 'wpb_exclude_from_home');

Tobias Smollett