if i use custom category for custom posts its single page shows 404 error else it’s working good in wordpress

Slug for post type and taxonomy is same please change the slug for taxonomy…
Sorry initially I did not checked your code.

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