Unable to get post archive link

Ok, my fault. I only have to add an argument when creating the custom post type,
'has_archive' => true.

Thank you anyway for taking the time to read my question.

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