Skip Navigation

[Resolved] Comment section is off by default.

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to "Allow comments" on all new posts in my CPT, and I don't want to check the checkbox every time in the post editor screen.

Solution: Edit the post type and turn on the Comments option. The comment section will appear in the post editor screen once the post is published.

0% of people find this useful.

This support ticket is created 5 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 8 replies, has 2 voices.

Last updated by stuartm-2 5 years, 11 months ago.

Assisted by: Christian Cox.

Author
Posts
#1199342

I am trying to show the comment section for all the custom posts and i dont want to click to each post to enable the comment section. Is there an option anywhere that im missing?

Moreover, i tried other themes,still the same issue so theme is ok. Default wordpress posts show the comment section.

Also i tried this code but it dosent seem to work.
function default_comments_on( $data ) {
if( $data['post_type'] == 'jobs' ) {
$data['comment_status'] = 1;
}

return $data;
}
add_filter( 'wp_insert_post_data', 'default_comments_on' );

Thank you

#1199387
Screen Shot 2019-02-12 at 12.32.58 PM.png

Hi, if you're trying to modify existing posts then you can use the bulk edit feature in the posts list menu to change comment settings for multiple posts at the same time. In the posts list in wp-admin, check to select several posts and then use the top menu to choose "Edit". This will open the bulk edit menu, which is probably the most efficient way to quickly set comment settings for existing posts (see the screenshot).

If you're talking about the comment setting for new posts, you should see the comments checkbox checked by default if you enable comments for this post type. If that's not the case, let me know and I can take a closer look.

#1199820
Capture.PNG

Hello

I am talking about new comments. It is not checked by default. In post types there is an option that says sections to display when editings (Jobs) and then i have to go to each post and enable it, also i dont want to bulk edit them.
I only need every new post to have the default comment section as it normally would.

Thank you

#1199933

On my local environment, this is how it works:
- Create custom post type with Comments turned off, and add two posts.
- Turn Comments on for this post type.
- Edit one of the two posts I already created, and see Comments turned off in the Discussion panel.
- Create a new post, see Comments turned on in the Discussion panel.

It's not working the same way on your site, so I must be missing something. Is your site online? If so, may I log in to wp-admin to take a look? If not, please provide a link to download a Duplicator clone of the site and I will take a closer look.
https://toolset.com/faq/provide-supporters-copy-site/

#1199947
Screen Shot 2019-02-13 at 8.44.45 AM.png

Okay I must be misunderstanding what you want to accomplish, because when I create a new Job post in wp-admin, the "Allow comments" checkbox is checked by default. Here's a screenshot (I closed the field group so you can see the comments checkbox).

The "Allow comments" checkbox is not checked by default on an older Job post like this one:
hidden link

I'm not clear what the problem is, can you help me?

#1199956

Yes let me clarify. I want the custom posts to have a comment section underneath them , like a normal post of WordPress.

I dont want to go and check to allow comments for every single post nor bulk edit them.

Thank you

#1199961

Apologies, my mistake you are right it enabled by default.For some reason it wasnt before.

My aim was im trying to enable Wpdiscuz commenting plugin , but its not replacing comments of Toolset custom posts it only does it for normal posts.
Do you have any advice?

Thank you for your time

#1199973

Maybe you were working in a post that had not been published yet? Until you publish, the Comment section will not appear in the post editor screen. It's the same way for native Posts.

As far as wpdiscuz, I think you have to turn it on per post type in the plugin settings. Then you must insert those comments in your single post template somehow. Here are some code samples other wpdiscuz Users have created to display the comments in their templates:
https://toolset.com/forums/topic/integration-of-wpdiscuz-comments-system-solution-via-shortcode-works-but/
https://gvectors.com/forum/how-to-and-troubleshooting/how-can-i-insert-wpdiscuz-into-a-page-as-a-standalone-comment-wall-i-e-detached-from-any-wp-post/#post-1279

#1199975

Cheers Christian ...i will try those links.

Have a nice day!