Custom post type to lead to single post type instead of shortcode modal

You could change this line :

<a href="#" data-reveal-id="<?php echo $modalid ?>">

to :

<a href="https://wordpress.stackexchange.com/questions/279169/<?php echo get_permalink(); ?>">

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