How can I add custom fields in a custom post type? [duplicate]

There are many ways of doing this… However, the easiest would be to use the Advanced Custom Fields plugin.

All you need to do is create a field group, select your custom post type, and then add and remove any fields.

Their documentation is also great.

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