used pre_get_posts() to fix pagination when excluding category