سلام و درود @miraziz   add_action('pre_get_posts', function(&$query) { if($query->is_home() || $query->is_search() /* Search Result Page */ || $query->is_year() /* Year Archive */ || $query->is_month() /* Month Archive */ || $query->is_author() /* Author Archive */ || $query->is_post_type_archive() /* Post Type Archive */) $query->set('cat', '-1261'); });  
    • Upvote
    2