pre_get_posts variables

The logic inside the is_home function relies on the main query, but by definition that query hasn’t happened yet as you’re still in the pre_get_posts filter.

Instead, consider $q->is_home(). The same goes for is_feed() $q->is_feed()

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)