id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 40059,Exclude a category site wide creates a 404 on calendar widget next month,BackuPs,,"Hi When you exclude a category site wide and suppose for this problem the month before this month has only ONE post and that post is excluded as it is part of the excluded category, then the calendar widget is still showing the next month as FEB and thus is still pointing to that month but when clicked upon it creates a 404 page. It should point to Jan and skip the month with that one post which is excluded. How to prevent this from happening? Is there a fix? {{{#!php set( 'cat', $exclude ); } } } } add_action( 'pre_get_posts', 'exclude_blog_category_global' ); }}} If i use query_posts in the archive php all is ok but when reading the codex it is suggested to use the pre_get_posts on main queries. How to fix this? tested with Default sixteen template.",defect (bug),closed,normal,,General,4.7.3,normal,duplicate,,,