Title: Control Post Comments
Last modified: August 19, 2016

---

# Control Post Comments

 *  [funkyfela](https://wordpress.org/support/users/funkyfela/)
 * (@funkyfela)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/control-post-comments/)
 * Hello,
    pls how can chose the pages to show/hide post comments. I dont want the
   post comment to appear in all the pages but only on some pages. how do i control
   that.
 * thanks

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Matt Dunlap](https://wordpress.org/support/users/mattdunlap/)
 * (@mattdunlap)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/control-post-comments/#post-1532054)
 * you should look at conditionals with wordpress. Such as is_single(), is_page()
 * if you are looking to allows comments on one page but not another, I would make
   an if statement for the post id
 *     ```
       if($post->ID!=45)
       {
       //do stuff like show comment form
       }
       ```
   
 *  Thread Starter [funkyfela](https://wordpress.org/support/users/funkyfela/)
 * (@funkyfela)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/control-post-comments/#post-1532058)
 * how do i do the stuff, from where do i go?
    thanks
 *  [Matt Dunlap](https://wordpress.org/support/users/mattdunlap/)
 * (@mattdunlap)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/control-post-comments/#post-1532068)
 * are you specifically working with pages, or posts and pages.
 * if pages, there is a file in your template folder called page.php.
 * search that file for “comments” and you will probably find something like comments_template();
 * that displays your comments form.
 *     ```
       if($post->ID!=45)
       {
       comments_template();
       }
       ```
   
 * if you want to blog from posts, you will edit single.php
 * of course, every theme is different, so the theme author might have just added
   the full comment code to your page.php file instead of using the comments_template();
 *  Thread Starter [funkyfela](https://wordpress.org/support/users/funkyfela/)
 * (@funkyfela)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/control-post-comments/#post-1532077)
 * I have several pages and i don’t need comment box on all.
    Some should be just
   the text and side nav, thats all.
 * appreciate you.
    thank you
 *  Thread Starter [funkyfela](https://wordpress.org/support/users/funkyfela/)
 * (@funkyfela)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/control-post-comments/#post-1532079)
 * I have several pages and i don’t need comment box on all.
    Some should be just
   the text and side nav, thats all.
 * appreciate you.
    thank you
 *  Thread Starter [funkyfela](https://wordpress.org/support/users/funkyfela/)
 * (@funkyfela)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/control-post-comments/#post-1532218)
 * i tried but i couldn’t get it done. i saw comments_template(); but when i added
   what you told me it gave an error, though i know i must have missed something.
   what i di was
    after comments_template(); <?php comments_template(); //since 
   am working on pages i did if(page_id=19) { // i realy dont know what to put here
   no display; } ?>
 *  [Matt Dunlap](https://wordpress.org/support/users/mattdunlap/)
 * (@mattdunlap)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/control-post-comments/#post-1532220)
 * if you want to remove from all pages, just comment out comments_template() function
   in the page.php file.
 *     ```
       //comments_template();
       ```
   
 *  Thread Starter [funkyfela](https://wordpress.org/support/users/funkyfela/)
 * (@funkyfela)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/control-post-comments/#post-1532221)
 * thanks and am sorry to be a pest, but i dont want to remove it in all the pages
   but some of the pages.
 *  Thread Starter [funkyfela](https://wordpress.org/support/users/funkyfela/)
 * (@funkyfela)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/control-post-comments/#post-1532227)
 * thanks buddy.
 * I got a place around and i think it solved my problem.
 * on the pages in the admin area, just mouseover a page name, it will bring up 
   different options for you, click on quick edit, you find the option of allowing
   comments or not, but on the site depending on theme used, it will just say comments
   closed.
 * Though i don’t want comment closed but i guess i’d just make do with this for
   now pending when i get a better solution.
 * Thanks buddy

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Control Post Comments’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 2 participants
 * Last reply from: [funkyfela](https://wordpress.org/support/users/funkyfela/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/control-post-comments/#post-1532227)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
