WordPress Hack – Batch Categories

Posted on the December 13th, 2005 under Blogging, Web Notes by Razlan

Finally I have successfully moved many posts from one category to another. The trick is to use this wonder “plugin” from Stephanie Booth.

This code essentially create an additional page in your control panel to allow you to add multiple posts into one category, remove multiple posts from one category, edit categories for multiple posts at the same time etc.

It’s truly wonderful! This is what you need to do:

1) Download the zipped file from here

2) Unzip the file, and upload the following files to the right folders where your WordPress blog resides:

batch-access.php goes in the plugins directory
batch-categories.php goes in the wp-admin directory

3) Go to your WP Panel > Plugins, activate “Batch Categories”

4) Once activated, you can click on the hyperlink to access your “batch-categories.php” page. Note that if you install your blog anywhere else other than your main folder, this hyperlink would not work. Your best bet is to access the page directly:

http://www.yourdomain.com/../wp-admin/batch-categories.php

with the “../” as whatever subfolders your blog resides in on your server

5) The “batch-categories.php” page is self explanatory. Play with it. However, you might need to note point (6) and (7), which I encountered

6) If you see nothing but a blank page when you try to load “batch-categories.php”, you need to edit this PHP file. Add in this line of code [ require_once('admin.php'); ] above this existing code line [ require_once('admin-header.php'); ]. Upload this edited file to overwrite the old one, and refresh that page. It should work now.

7) By default, “batch-categories.php” will only show 10 posts per page. If you want to show and edit more posts in one go, look for this line code in the PHP file [ $showposts=10; ]. Replace the number “10″ with whatever number of posts you want, but be sensible and don’t hang your server!

Phew! Well, this is a documentation of my experience, and might not work for you. I am not a techie guy, so if you need support, please visit the following links:


Stephanie Booth’s Batch Categories Page

WordPress.org Support Forum
Useful information on GaryPaulson.net

blog comments powered by Disqus
-->

About Me

The name is Razlan. ("Are you a Malay?") Nope, I am part Kadazan and part Chinese. You can call me Raz, or Russ if you fancy. Never call me Lan, or I’ll punch you. A Malaysian now in his thirties, I have studied and worked in Singapore for ten years and now living in Hong Kong since mid-2009. Generally addicted to good books, great holidays and awesome blogs. And I love my IXUS. I bring her everywhere I go.

Get Connected!



Razlan on Facebook Subscribe to Razlan's RSS feed Razlan on Twitter

These Got Me Blushing

Tsunami 2004 - a highly popular video I uploaded on YouTube, racist remarks not withstanding
You’re My Exception, Not The Rule - pondering thoughts on love and relationship
10 Things I Wish You’ll Say At My Funeral - a morbid reflection inspired by the celebrated TVC
10 Signs of a Good Masseur for a Fantastic Massage - confession of a massage junkie
A Guide To Pack Your Backpack - what goes with me when I hit the road
My Carbless Diet - the biggest culprit for my shrinking waistline

These Kept Me Tweeting




Tip Jar


I use NameCheap.com to manage shit loads of domain names. Do you?

 

December 2005
M T W T F S S
« Nov   Jan »
 1234
567891011
12131415161718
19202122232425
262728293031  

Archives