Editing many posts at once in WordPress

Need to edit many posts at once in WordPress? Is the standard limit of 15 posts on the Posts Edit screen just not enough for you? Well, there is a hack you might be interested in. This involves editing the core WP files, so is not recommended as a permanent solution or for production sites… it works for me, but it might kill your cat and devastate the area around your home. You have been warned.

Check our wp-admin/includes/post.php, and find this line (it’s around line 805 in WP 2.7.1):


Change the “posts_per_page” value to whatever you see fit.

This came in handy for me on a site where I’d accumulated several thousand posts due to a rogue script, and I wanted to delete them through the GUI to take advantage of some plugin hooks, rather than just scrubbing the database.

Join the Conversation


Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.