How to disable "Comments" for Custom post Type?

Support General How to disable "Comments" for Custom post Type?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39416
    s.liem@me.com[email protected]
    Participant

    Hi

    I have created a new CPT "Glossar" and realized, that each new post in this CPT allows comments. How can I disable this for all existing glossar-posts? There's no such option in the post-editor, nor via Quick-Edit.

    Thank you in advance and kind regards,
    Sascha

    #39441
    PeterPeter
    Moderator

    Hello,

    When creating/editing the custom post type, you can go to the tab Supports and disable option Comments to remove the comment box for that post type.

    If you are using the code, please read more on the documentation https://developer.wordpress.org/reference/functions/register_post_type/#supports

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.