• Resolved delaitec

    (@delaitec)


    Comments are displayed even with support disabled.

    If in the CPTUI settings the support for comments is activated, and then within the edit screen of the custom post the field “allow comments” is selected, the comments are displayed in the post. Perfect.

    If we then go back to the CPTUI settings and disable support for comments, the “activation / deactivation” area of ??comments disappears from the sidebar of the “custom post editing” screen.
    However, posts with previously activated comments will continue to be displayed.

    To disable comments, it is necessary to go to CPTUI to activate support. Then go to the post to disable the comment, and then disable support again.

    What disabling support does is basically hiding the comments section of the sidebar, it shouldn’t make all comments disabled when support is disabled.
    regardless of whether they are active or not on each individual post?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I believe so, yes, because I am doubtful that disabling the support automatically changes the “comment_status” column in the posts table for all of that post type. The column is what helps dictate whether they’re open or closed for that post.

    I know in past client work I’ve had to run some SQL commands to toggle comment status in bulk before, when disabling commenting ability.

    Thread Starter delaitec

    (@delaitec)

    If I may, I have a suggestion: When disabling comment support, give the user the option to disable only for new posts, or disable for all posts.

    What you think?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Honestly a request that’s better handled by other plugins, and some may even already exist that handle that. Our primary focus with our plugin here is collecting and handling the arguments to be used with register_post_type() and register_taxonomy(). The setting we have is for the post type itself, not just individual posts in the post type.

    If we were to try handling anything about the selective support idea, it’d probably be done as a tutorial/documentation more than anything.

    Thread Starter delaitec

    (@delaitec)

    I understand.

    Perhaps issuing a warning to users stating that by enabling or disabling comments what will happen, will help to resolve the situation a little.

    I understand that it is not a focus of the plugin, but it is something that directly influences its functioning,

    I believe that I should pay more attention to this.

    Any news let me know.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Will try and see what we can do to be more proactive here.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Comments are displayed even with support disabled.’ is closed to new replies.