Problem with displaying posts in the CPT category

get_the_category returns posts only with the default taxonomy “category”, if you are trying to display posts from a custom registered taxonomy you should use get_the_terms

Also get_posts argument category doesn’t support custom taxonomies, you should use WP_Query‘s Taxonomy Query mostly.

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