The default install of Wordpress archives the post of an “author” on a page with the page slug “/author/{name}”. Have you ever wanted something different on your multi-author blog?


Advertise With Us

The question came up during our redesign of MyBiggestComplaint.com. We realized our authors had become much more than authors, they were full-on, pedal to the metal users. That default “author” slug for archives had to be changed.

What’s the first thing you do when you want to change something in Wordpress? Look for a plugin, right?

I couldn’t find anything in my self-imposed plugin search time limit of 30 seconds on Google so I decided to write a plugin myself. And then I didn’t.

I didn’t write a plugin because I got what I wanted by changing one word in all the lines of code of Wordpress. I could have kept on with a plugin and written a few more lines of code, but why?

One of the major ideas behind Wordpress plugins is that a plugin will help you survive an upgrade. With Wordpress getting ready to release v2.3, the releases are coming much more quickly than before. Plugins are always preferred to a hack of the core code. Once you hack the core, an upgrade will destroy your hack.

I’m not sure really if changing one word of one line of code counts as a hack, but as far as production time was concerned, it seemed like the right thing to do.

If you want to change the default author archive slug for Wordpress from “/author/” to something different, like “/user/”, “/hot-chick/”, “/hokie/” or whatever you want, open /wp-includes/rewrite.php and look around line 168 for

var $author_base = 'author';

and change it to

var $author_base = 'user';

Save the file and update your permalinks underOptions/Permalinks and you’re done.

Technically, it’s a hack. Probably not a good idea, but it’s only one word and it’s a lot quicker than finding or writing a plugin that would do the same job. It’s also major enough for you to remember to re-do it the next time you upgrade. Even if you didn’t, it’ll only take about a second to remember to do it when your author pages started coming up 404 after an upgrade.

You might also add a permanent 301 redirect in your .htaccess file to take care of old links to the old /author/ pages like this

Redirect 301 /author/ http://yoursite.com/user/

See it in action on the new and improved “user” pages at MyBiggestComplaint.com.

"Does Your Blog Have “Authors” Or “Users”?" by Tommy was published on September 21st, 2007 and is listed in SEO, Wordpress.

Follow comments via the RSS Feed | Leave a comment | Trackback URL

Comments on "Does Your Blog Have “Authors” Or “Users”?": 1 Comment

  1. GadgetGadget.info - Gadgets on the web » Does Your Blog Have “Authors” Or “Users”? wrote,

    […] "Walter, Patrick A" wrote an interesting post today!.Here’s a quick excerptThe question came up during our redesign of MyBiggestComplaint.com. We realized our authors had become much more than authors, they were full-on, pedal to the metal users. That default “author” slug for archives had to be changed. … […]

Leave Your Comment

Subscribe without commenting

Click Screenshots To Enlarge

  • Wordpress Theme Skin for Shifter - Over It (Glass)
  • Change between thin, wide and full width layouts without destroying your site structure.
  • Wordpress Theme Skin for Shifter - Over It (Light)
  • Choose between single or double sidebars and then shift sidebar width or position with the flip of a switch.
  • Wordpress Theme Skin for Shifter - Lizard (Dark)
  • One, two or three column layouts have never been easier.
  • Wordpress Theme Skin for Shifter - Brown
  • 15 skins let you choose the end look for your site without destroying the structure of your perfect layout.
  • Wordpress Theme Skin for Shifter - News Red
  • Shifter makes designing your site easier, faster and more enjoyable - all with the flip of a switch!

Wearing the Basic Skin for Shifter by Buzzdroid