Get uri of CPT archive page

You would use the get_post_type_archive_link function. As you declined to provide the name of your post type ( but you did provide its URL slug ), I cannot provide a full example, however, it would be something similar to this:

$link = get_post_type_archive_link( $post_type );
echo '<a href="'.$link.'">View Archive</a>';

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