logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.

$5
Remove Comments, Responses and Recent Posts Links on most pages

I do not need Comments and Responses on any pages of the site. How do I remove this? Is it a matter of commenting out the command on the parent theme?


little D | 06/04/12 at 12:04pm Edit
Tutorial: How to assign prize money


(7) Possible Answers Submitted...

See a chronological view of answers?

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

  • avatar
    Last edited:
    06/04/12
    12:08pm
    Francisco Javier Carazo Gil says:

    Look at this plugin: http://wordpress.org/extend/plugins/bulk-delete/

    • 06/04/12 12:12pm

      Francisco Javier Carazo Gil says:

      If you want to delete comments and response to a specific page, massively directly from SQL use this query:


      DELETE FROM wp_comments WHERE comment_post_ID = 'ID_POST_YOU_WANT_DELETE_COMMENTS'


      This id of post can also be a page, only find his id.

    • 06/04/12 12:16pm

      Francisco Javier Carazo Gil says:

      If you want to remove the option to make comments, you have to template and then in single.php find comments_template() and show it depending a condition you can create:


      if(get_the_ID() != ID_PAGE_NOT_COMMENT)
      comments_template();

  • avatar
    Last edited:
    06/04/12
    12:08pm
    Daniel Yoen says:

    on single.php

    remove this line :

    <?php comments_template(); ?>

    hope this help :)

  • avatar
    Last edited:
    06/04/12
    12:10pm
    Jerson Baguio says:

    Its under settings -> discussion to enable or disable the comments

  • avatar
    Last edited:
    06/04/12
    12:10pm
    Nilesh shiragave says:

    if you don't want that on pages then open page.php from your active theme folders and remove following line


    <?php comments_template(); ?>

  • avatar
    Last edited:
    06/04/12
    12:12pm
    Arnav Joy says:

    please see this

    http://en.blog.wordpress.com/2006/09/11/comments-on-pages/

    • 06/04/12 12:17pm

      Arnav Joy says:

      please also have a look in this plugin

      http://wordpress.org/extend/plugins/show-hide-commentform

  • avatar
    Last edited:
    06/04/12
    1:45pm
    Havrince Daniel says:

    If you want to remove comments just from pages(like contact or about us) you need to delete this line* from page.php in your wp-admin teme editor.
    If you want to remove comments form articles too delete this line* from single.php

    *

    <?php comments_template(); ?>

    Previous versions of this answer: 06/04/12 at 1:45pm

  • avatar
    Last edited:
    06/04/12
    1:59pm
    Vincent King says:

    Go to settings -> discussion disable comments!

This question has expired.





Current status of this question: Community pot



Please log in to add additional discourse to this page.





Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.