Assign a link of a post to that contains that post?

This should help you:

<?php
    if ( !is_singular() ) :
 echo '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">';
    endif;?>

 Here is your existing <article></article> codes

<?php
    if ( !is_singular() ) :
 echo '</a>';
    endif;?>

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