Archived topic
Comment section on custom post type
5 replies · Started by Mathieu on January 17, 2022
Hi,
I have a custom post type that I am creating on a new website. The custom post type is built with support for comments.
'supports' => array( 'title', 'editor','excerpt', 'thumbnail','comments'),
However, Generatepress doesn't seem to care and show the section. Is there some filter I am missing on a GP level to have the basic comment section?
Best regards,
Hi there,
are you using a custom template for your custom post type ?
No, it is pretty stock.
see Tom's reply here as to how GP adds the comments template and how to add that to your CPT:
https://generatepress.com/forums/topic/add-comment-form-to-custom-post-type/#post-1608292
Oops. Finally, my mistake.
I created the post before I added support for comments so the post just had comment disabled.
I feel stupid but the good news is that it works very well natively.
Happy new year to the great GeneratePress team.
Cheers.
Awesome - glad to hear you found the issue
And happy new year too