Md Mehedi Hasan

Main Query Modify | pre_get_posts

function alpha_modify_main_query($wpq){
	if(is_home() && $wpq->is_main_query()){
		$wpq->set("tag__not_in", array(2));
	}
}
add_action("pre_get_posts", "alpha_modify_main_query");