Here is my problem: the site I am working on has been running for over a year now; many pages and posts have been added to the site. Recently my client has requested I add a new page and only allow comments to be made on that page and the posts within that page. However, after enabling comments by adding <?php comments_template(); ?> in my theme’s page.php file every single page and post had the comment box activated. Fortunately this forum was able to help me deactivate comments for the entire site by using phpMyAdmin and running these two lines:
UPDATE wp_posts SET comment_status=’closed’ WHERE post_status = ‘publish’ AND post_type = ‘post’;
UPDATE wp_posts SET comment_status=’closed’ WHERE post_status = ‘publish’ AND post_type = ‘page’;
I was then told I could individually check off “allow comments” for the individual posts I want. However, when I do that, the comment box still does not show up. Any help would be much appreciated!
- The topic ‘cannot enable comments!’ is closed to new replies.