Custom post type data not displaying If I select the category from the dropdonw

did you try a solution like this Include custom post type in “all posts” – Custom Post Types must be included in the main_query first – to be available in the loop output.

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