WordPress loop not working on blog.php page

Within your blog.php file you need to declare <?php wp_head(); ?> without this the loop will not work and only so many items within $post will be available to you.

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