How to display comments and comment form on custom post type?

1) add “comments” to the supports array when registering the post type.

Register Post Type

2) add the comments_template() function inside the loop of the single.php template and you are good to go.

Add Comment Template To Post

Leave a Comment

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