Quick and easy hack makes batch category and tag management a heck of a lot easier.

Hack Batch Categories Plugin to Show More Posts Per Page

  • Type: Hack
  • Version: All
  • More Info:
  • Download:

Although I long for the now apparently defunct ManageMe WordPress Plugin, Rob Miller’s Batch Categories plugin, which allows you to add, remove, or substitute post categories and tags enmasse, is a worthy replacement for part of the ManageMe functionality. Batch Categories has an annoying limitation, however: it’s hardcoded to only show 15 posts per page–and thus only manage 15 posts per page. I don’t know about you, but I’d rather do as much as I can on a single page, in one operation. Thus, I hacked Rob’s plugin. So can you.

  1. If aren’t already using the latest version of Batch Categories, go download it.
  2. After unzipping the plugin (or installing it), open Admin.php in Notepad or in the WP edit plugin screen.
  3. At line 21 you’ll find the below code (note that Rob obviously intends his plugin to someday handle more than 15 posts per page):

    // Maybe make this an option some time
    $per_page = 15;

  4. Change the value of $per_page, replacing 15 with however many posts you’d like to manage at once (I usually keep it set for 100, but I’ve successfully run it up to 500 posts per page).
  5. Save the plugin and install it (if you hadn’t already).

From now on, you’ll be able to batch manage categories and/or tags on more posts than the default 15.

Hopefully Rob will open that option up to in the admin UI in a near future release. Until then, it’s a simple hack.

Post a comment, or leave a trackback from your site.

4 Comments

  1. Cheeseslave
    Posted 02 December 2008 at 11:43 PST | Permalink

    Thank you *so much* for this.

  2. Ruth Marie Sylte
    Posted 17 August 2009 at 08:47 PDT | Permalink

    Thank you so much for sharing this. It has really made a difference in my ability to use Batch Categories efficiently and easily.

  3. hammy
    Posted 28 August 2009 at 03:18 PDT | Permalink

    Thank you very much. I’ve been racking my brains for some solution to my uncategorized blog entries. Batch Categories came closest to helping me, but without this hack, it was getting to be really difficult.

    :D Stumbled, AND tweeted.

  4. Egyptian Costumes
    Posted 28 August 2009 at 18:29 PDT | Permalink

    Hey, Thank you for this hack, I had been looking for this fix for a long time.

    Best

Post a Comment

Your email is never published or shared. Photos provided by Gravatar.com. Need one? Required fields are marked *

*
*
retaggr