CanAm Investment Management System Pre-Launch

function wpb_exclude_from_everywhere($query) { if ( $query->is_home() || $query->is_feed() || $query->is_search() || $query->is_archive() ) { $query->set('post__not_in', array(1737, 1718)); } } add_action('pre_get_posts', 'wpb_exclude_from_everywhere');