How to get post object on blog template

Do not post the AJAX request to the page you are viewing, use the AJAX API instead.

To get the permalink for the blog page use:

get_permalink( get_option( 'page_for_posts' ) );

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