Trimming Down the Author List

Filed as News on December 22, 2006 10:47 pm

Repost This

The Blog Herald has changed ownership a couple of times, and with each change of hands, a new set of editors, columnists and contributors comes in. You can therefore expect the list of authors to be quite long–in fact, it was becoming longer than any item on the blog’s footer. We therefore decided to trim down the list to the current set of contributors. This includes new ones, those who stayed on from the previous batch, as well as previous editors Matt and Duncan.

This wasn’t so easy, though, since WordPress doesn’t support excluding certain user levels in the author_list template code. By default, you can only exclude the username admin, and users who have made zero posts. We earlier thought that the easy way would be to move all old posts under the admin account, but that wouldn’t be fair to the original authors. So in the interest of blogging ethics, we decided to use some WordPress kung fu so that the author list will be trimmed down, but still keeping the old posts attributed to the original authors.

J. Angelo did the hack using the deprecated user_status field in the WordPress users table on the database. This defaults to 0, so we marked users to be excluded with 1 (or any number for that matter). We then replaced the line WHERE user_login <> ‘admin’ with WHERE user_level = 0 in the /wp-includes/template-functions-author.php file. It’s not very elegant, but it works. We’re hoping that either WordPress gets to adopt this functionality in upcoming versions, or perhaps someones can make a plugin for this purpose soon–or maybe we’ll make one ourselves!

So in case you’re wondering, all the previous articles are still there, along with proper author attribution. Author archives (including past authors) have been added under the Blog Herald archives page.

Tags: , ,

This post was written by

You can visit the for a short bio, more posts, and other information about the author.

Submissions & Subscriptions

Submit the post to Reddit, StumbleUpon, Digg or Del.icio.us.

Did you like it? Then subscribe to our RSS feed!



  1. By HART (1-800-HART) posted on December 22, 2006 at 11:09 pm
    Want an avatar? Get a gravatar! • You can link to this comment

    Works for me! Although, I think I would modify Ed Lee’s nickname from just “Ed” to his full name .. and .. who is Oneshot?

  2. By Tony posted on December 23, 2006 at 12:53 am
    Want an avatar? Get a gravatar! • You can link to this comment

    “One Shot” is coming on in the next few days — full name TBA. ;)

    t