Page Comments Off Please

My first Wordpress plug-in is here!

  • Page Comments Off Please Screenshot
Holy schmoly!

Update: over 9,000 downloads and a 5 star rating!  Thanks everyone!

What does “Page Comments Off Please” do?

This plug-in unchecks the “allow comments” and “allow trackbacks/pingbacks” checkboxes by default for new pages while leaving the default behavior for posts alone.  As of version 2.0 it also will suppress comments for posts if you wish, but you have to set that in the plugin setting page.

I get SO tired of unchecking ‘allow comments’ for pages, and I’m SURE that my clients won’t remember to do this when I use WP as a CMS.  So I made a plug-in that disables this by default, saving time and energy.

This is sure to make the must-have list for anyone using WordPress as a CMS solution.  It’s easy to use, super simple, and a real time-saver!

 

How to use

This plugin was designed to be installed when you are beginning a site.  It just alters some of WordPress’ default behaviors – namely, checking page comments by default.  Install this early to reap maximum benefits.  If you are late to the game, as of 2.0 you can now mass toggle your existing pages comments back to off using the convenient link.

Enable the plugin to uncheck the discussion checkboxes by default for pages.  Disable the plug-in to remove this behavior.  You can further set this plugin to modify pages or posts default bhaviours on the plugin settings page (located in “Settings”)

Frequently Asked Questions

Q. How do I set the preference to turn the default comment status for pages off or on?

There’s nothing fancy here.  Just enable or disable the plug-in.  That’s it.

Q. Does this plugin disable comments on my existing pages?

Yes, but not without your direct action.  I felt that might be disruptive to some users who want comments on some of their pages.  I don’t want the software to make assumptions.  Imagine if you had hundreds of pages, some with comments, some without and you installed this plugin to discover it wiped all your settings!  So I simplified the scope of the plugin.  I wanted something that simply changed WP’s default behavior regarding pages and comments.  There IS a button to do this on the settings page.

Q. Can I suppress comments on Posts only, or Pages only, or both?

Yup.  As of 2.0 you can do this now on the settings page.  Just check which types of posts you want to disable future comments on.

Q. Does this plugin disable comments on my existing posts?

I did not add a button to do this yet.  It will be in the next version :)

Installation

  1. Unzip `page_comments_off_please.zip` inside the `/wp-content/plugins/` directory (or install via the built-in WordPress plugin installer)
  2. Activate the plugin through the ‘Plugins’ admin menu in WordPress and the checkboxes will be off next time you go to create a page.

Download

Latest Version: 2.0.2

Legacy version:  This is version 1 of the plugin.  Only use this if you need a crusty outdated version for some reason :)

 

Donate

If you are using this plug-in for a commercial project, or if you just find it useful, I’d really appreciate any donations to help keep the open-source mojo flowing!  Thanks!

Feedback

Any ideas for improvement?  Leave a comment and I’ll gladly consider it!

Categories

25 Comments

  1. It works! Thank god. I can’t tell you how many times I’ve forgotten to uncheck those boxes. Clients never seem to remember either. This will be a stock install for all my new WP sites.

  2. This does not seem to work with version 3.1 … there are no boxes to either check or uncheck. I am using twentyten theme. Any thoughts appreciated ! Thank you

  3. @John Kelly

    The boxes are there, but in WP 3.1, you need to enable them on the screen-options tab. Whether you see the boxes or not, I have verified that the plugin continues to disable them as designed. Good luck!

  4. Hi! This was just the thing I was looking for: disabling the comments for pages by default.

    One question though: Is it possible to enable comments on a particular page – aka this plugin only unchecks the option by default, but does not totally disable it for pages?

    Mind if I include this code in my functions.php in themes? They’re not public themes though – nor commercial ones :P

  5. Hi Jussi,

    You can enable comments on any page. Just check the “allow comments” box. This just unchecks it by default.

    You can bundle the plugin with any theme, and you are entitled to use the tricks I used to accomplish this as you please…however I would rather you bundled the plugin than gut it into your themes…Thanks! -Joe

  6. @ David : This will be in your theme. You can either edit your theme’s templates to get rid of this (probably in page.php) or you can pick a different theme. Hope that helps!

    -Joe

  7. Using WP 3.3.1 with Twenty Eleven and it does not disable comments on EXISTING pages. It DOES work on NEW pages.

    On EXISTING pages you have to go to an existing page, click on the dropdown “Screen Options”, check the “Discussions” item. You only have to do this on one page. Then scroll down below the writing window and look for the Allow Comments and All Trackbacks/Pingbacks and uncheck as appropriate.

  8. Yes. I wish WordPress would update my screenshots and FAQ in the repository – I keep updating, but they never post them right, only some things get updated. So I understand the confusion. However, per this very page, you can read that this is how the plugin is designed to work. This plugin doesn’t turn off comments, it only unchecks those damned boxes by default after you install it. So it’s best to install this right away with a new site. I’m considering adding a feature to turn off page comments for existing pages. Would you like that?

  9. I love this pluggin! But my customer wants comments now and I deactivate it and deleted it as well. Now I cannot get comments to show. What do you recommend? Using WP 3.41 and Frantic theme.

  10. Just edit the pages you want comments for and check the discussion check-boxes back on.

    Version 2.0 of the plugin (coming soon) will include new tools to let you mass-assign comment-settings. This will be available in a few days, actually. In the mean time, you will need to individually toggle the page comments back on. Make sense?

    This plugin just unchecks the boxes by default, so there’s nothing stopping you from checking them back on. You can even leave the plugin installed.

  11. lieven

    thanks 4 sharing this, version 1 fits me perfectly on our members Multi-site site :-)
    Version 2 however added the settings page for all users which is very combersome, it adds more unnecessary complexity for them, Is there any possibility to turn that settings page of or do I have to revert to version 1.0?

  12. With the latest update of wordpress (3.5.1), your plugin interferes with the hyperlink tool in the edit post/page location. My only recourse was to deactivate the plugin.

  13. @lieven – For now, you will have to revert to 1.0. I’m working on improvements for multisite right now. :) Had to focus on billable over the last few weeks.

  14. @William Glesener

    Can you elaborate? I tested this on a fresh install and was unable to replicate any problems at all when editing a page and adding links to existing content and custom locations. Editing links also worked fine. no JS errors or problems.

  15. Wesley Jordan

    Great plugin that saves a ton of time! I ran into a problem this morning with a settings screen of my theme, BlogsMU. It was not working correctly and I discovered that by disabling this plugin the system went back to normal. The problem is somehow related to jQuery.noConflict() because the fix on my theme (before I investigated which plugin was causing the problem) was to replace $ with jQuery. One thing I would note is that this plugin does not have to be active all the time so this isn’t a big deal. It can be activated just to remove comments from all the pages and then deactivated again. Thanks for the plugin!

  16. Good news Terry! The plugin’s latest version lets you do just exactly that!! If you go to settings -> page comments etc.. -> then see the check-boxes to suppress comments on posts or pages or both. Is there something else you would like to see regarding posts besides that?

Leave a Reply