WP_Query is only looping home page, not pages

Removing the first “wp_reset_postdata ();” solved the problem.

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