Custom post type permalinks do not appear using the link functions

You missed and echo on <a href="https://wordpress.stackexchange.com/questions/298150/<?php echo esc_url(get_permalink()); ?>"><?php the_title() ?></a>

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