Use $query->set multiple times with pre_get_posts?
Think of this pseudo code if sky == blue set a = 5 if grass == green set a = 7 What value will a have? Not 12. This is the exact same situation. You are setting a specific parameter to a specific value. In the second call, you are overwriting your previous value. To … Read more