Why is Heading tag Auto applied to Post data? [closed]

Your second h4 tag is again an opening tag.

This

echo '<h4>'.get_the_date().'<h4>';

should be this

echo '<h4>'.get_the_date().'</h4>';

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