Counter problem, infinite loop when post_per_page equals X

Remove the $posts = get_posts($args) line; not needed if you’re calling a WP_Query afterwards.

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