Create a list of months based posts

Try This

<a href="https://wordpress.stackexchange.com/2016/8/?post_type=post">August</a>
<a href="http://wordpress.stackexchange.com/2016/7/?post_type=post">July</a>

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