pre_get_posts conflict with archive posts
As your pre_get_posts function stands, you’ll have that conflict as you are using pre_get_posts very carelessly. pre_get_posts modifies the query variable object before the main query AND WP_Query is executed. So any changes in your function will influence both the main query and any custom query that uses WP_Query. That is why everything is haywire … Read more