wphats

“Comments Are Closed” Problem in WordPress

“Comments Are Closed” Problem in WordPress

Sometimes we are facing a major problem to have COMMENTS ARE CLOSED in WordPress site and there are several causes to happen this issue. If you find the solution in web many experts will deliver different types of method to get rid of. And most of them will ask you to run a SQL query.

And really this solution works :

OR

 

But, it will be funny if you are really don’t know how to run SQL query OR if you don’t have permission to access your database. Then how ?? Yes, here i got a solution to post a function in your functions.php file which will solve your problem.

Just paste the below code in functions.php file.

 

 

This post has already been read 2650 times!

Mehedi Hasan

Cool WordPress Developer having much agile experience to develop any kind of WordPress sites & plugins. Also good in troubleshooting, fixing & making any kind of tweaks for WP site.

More Posts

POSTED ON: Wordpress Support

4 thoughts on ““Comments Are Closed” Problem in WordPress”

    1. @Marcello, this function works for all comments whatever posts/pages. If you don’t want to display comments in *page* you might have option from theme settings otherwise you have to do from “page.php” file located at theme root folder. Just find the line “comments_template()” & remove/commented it. That’s all.

Leave a Reply

Your email address will not be published. Required fields are marked *