How to fetch custom post types with its full data on wordpress?

During the creation of the custom post, did you add the support?

‘support’ => array(‘title’, ‘editor’, ‘excerpt’, ‘thumbnail’, ‘revisions’),

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