Is it possible in wordpress to display comments and comment form on custom post type, and how to do that?

Thanks in advance.


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

  • <?php if (is_single ()) comments_template (); ?> – gregn3 Jun 11 '15 at 13:42
  • I need Woocommerce wishlist to extend with comment feature, the wishlist post type registering in wp-content\plugins\woocommerce-wishlists\woocommerce-wishlists.php so in such case how do we enable comments? – mapmalith Sep 20 '17 at 12:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.