The title attribute is best used to add optional advisory information to an element.

For example, suppose that you were writing an article about overcoming adversity and you made a passing reference to Lance Armstrong. Most of your readers will know who Lance Armstrong is, so you don’t want to spend time explaining, but the few who don’t might benefit from a brief description in a title attribute. The link above has this: “Professional cyclist who overcame testicular cancer to win the Tour de France a record seven consecutive times”.

Some users won’t be able to access the title attribute: most screen reader users won’t hear it, and keyboard users won’t see it. For mouse users who hover questioningly over the link, however, enlightenment will appear in the form of a tool tip, so the title attribute does serve a purpose. (more…)

A new version of Page Lists Plus can now be downloaded from the WordPress plugin repository. This is the most significant update for a long time, and adds enough new features (including several in response to email requests) that an overview is in order. Here are some of the highlights of PLP v1.1.2:

First, the ability to add custom classes to specific list items has been restored. I had removed this, thinking that the page-item-x classes automatically added by WP made it redundant, but several users asked for it to be reinstated. To use this feature, check the “

Second, the ability to unlink the current Page’s link has been added. To use this feature, check the “

With multi-author WordPress sites, different authors will often be expected to post content to different categories. For example, a news site might have one author for political news, and another for sports news, and another for entertainment news, and so on. These authors’ Posts might be assigned to “Politics”, “Sports”, and “Entertainment” categories respectively, and then displayed in the appropriate place on the site based on those categories.

The only problem with this is that it relies on the authors remembering to assign their Posts to the right category. If they forget, then you’ll have content appearing in the wrong place on the site. Not a massive problem, as it’s easily fixed, but it would be nice to be able to make sure that it doesn’t happen.

There’s a plugin that supposedly lets you do this: Bind User to Category. With Bind User to Category, you can assign users a category to which all of their Posts will then be assigned, irrespective of which Category boxes they check or don’t check on the Write > Post screen.

The only problem is that Bind User to Category, which was last updated in March 2008, doesn’t seem to work with recent versions of WordPress. You upload and activate, and nothing seems to have happened.

The problem is fairly straightforward, and easily fixed. Working with v0.2b, line 79 of bind-user-to-cat.php looks like this: add_management_page(__('Bind user to category'), __('Bind user to category'), 10, basename(__FILE__), "butc_form");. This is supposed to create a sidebar link to the Bind User to Category admin page, but the add_management_page() function is deprecated, so it doesn’t work, making the plugin admin page inaccessible and giving the impression that the plugin doesn’t do anything.

Replacing this line with add_submenu_page('users.php', __('Bind User to Category'), __('Bind User to Category'), 10, basename(__FILE__), "butc_form"); fixes the problem, adding the Bind User to Category admin page link to the Users menu.

As far as I can tell, everything else about the plugin still works fine in WP 2.8, so all you need to do to use Bind User to Category with WP 2.8 is update that one line of code.

When you add Posts to a WordPress blog, WordPress automatically creates various archive pages that you can use to display them. These include the commonly used monthly archives, category archives, and tag archives, and also the less commonly used author archives.

You can add a link to an author archive using WordPress’s the_author_posts_link() function. The permalink for an author archive uses the base “author” and the author’s ‘nicename’, which is created on registration using the author’s first and last names and which can’t then be edited through the dashboard. This gives an author archive permalink of something like this: http://www.technokinetics.com/author/tim-holt/.

In some circumstances, this isn’t ideal. If your blog authors use pseudonyms, then you won’t want their real names shown in your author archive permalinks.

To change this, you need to edit your database manually, using phpMyAdmin or similar. In the users table, you’ll find the “nicename” column. Changing the nicename field value for a user will change their author archive permalink, allowing you to protect authors’ anonymity.

One Site, Two Blogs

People occasionally wonder whether WordPress makes it possible to have two separate blogs on a single site. Perhaps you have two different authors, and want each author’s posts displayed separately. Or perhaps you want to blog about two different topics and keep them separate.

The short answer is “No, WordPress doesn’t let you do this”.

The longer answer is “Yes, but it takes some work”. (more…)