WordPress pagination link always leads to home page

Pagination is unlikely to work on anything which is not the main query and there is not much point to try to force it to work in other places. Use pre_get_posts filter if modifying the main query will give you good results, otherwise just invent your own pagination scheme that do not use the same parameters as wordpress.

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