Loop Post Types with Name and Links

As Tom mentioned, $link is false because your post types don’t have archives. You need to add the has_archive argument when you register your post types, and set rewrite to true so the rewrite rule for your archive is generated.

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