Pre Get Posts – Difference between conditional() and $query->conditional()?
There’s a big difference… most of the times. is_home(), just like any other conditional tag, check main query. $query->condition() check the query object that is passed by action, that can be a a completely different query, because pre_get_posts is called for all queries. As example, let’s assume you are viewing a singular post, and inside … Read more