Beantin webbkommunikation

Beantin Beta Blog

Experiments, investigations, and tests of web things
July 16, 2013

Disable comments and pingbacks on old posts in WordPress

It’s pretty straight forward to turn off pingbacks and comments in WordPress. It’s just a checkbox under “settings” and “discussion”… but what’s not obvious from that setting is that it only applies to new posts created after you made the change.

If you’ve got a fair few existing posts, it’d be time consuming to edit each post and alter the settings individually for each one. You also might find someone telling you to go into the database and alter something there.

Nope. Updating the settings of all the old posts is much easier than that, it’s just a little hidden.

Here’s what you do:


  1. Go to your posts page
  2. Expand the screen options section
  3. Change the options so you’ve got a decent number of posts on screen
  4. Apply the screen options change
  5. Select all posts
  6. Choose “edit” in the bulk options drop down.
  7. Set “comments” to “do not allow” (to disable commenting)
  8. Set “pings” to “do not allow” (to disable pingbacks)
  9. Click on the “update” button.

If you didn’t set your screen options high enough to show all posts, then you’ll need to repeat the above for “page 2” of all posts (and 3… 4.. etc)

Turning off pings helps reduce the amount of spam coming into your WordPress installation, even if you are using Disqus or akismet.

Related Posts Plugin for WordPress, Blogger...
  • zimbrul

    This is just brilliant. I didn’t know this trick.

  • Kevin

    Thank you. Been bigging me for a couple of years and this is so simple to do. Beats all the plugins and messing with the database. Genius.

  • Katie

    Thank you! You just saved me so much time and trouble.

  • Brian Wallace

    I have 32000 pings on my site and growing. Thank you so much!

  • Krzysztof Lipski

    Yay, no worries about ping now, thanks a lot!

  • a1pha_gr

    Thank you very much, I had forgotten mass edit!

  • miss abadli
  • sebortega

    thanks for this.

  • Gabriel Conceição Increase your website visibility for free!

Theme Beantin created by James Royal-Lawson. Privacy Policy