New WordPress plugin: Sitewide Tag Suggestion

WordPress’s Post Tags box, which appears on each Edit Post and Add New Post screen, has a great feature called “Choose from the most used tags in Post Tags”. This link allows you to see which tags you’ve used frequently in the past and apply them to your current blog post. The feature gives rise to two nice effects. One is that you avoid ending up with a lot of close-but-not-quite-identical tags on your blog (like “WordPress”, “WP”, “Word Press”, and so on) that, because they aren’t grouped together, tend to defeat the organizing purpose of tags. Another benefit is that it reminds you of the things you found important in past posts, and encourages you to mark your current post with the same tags, if relevant.

Sitewide Tag Suggestion
Sitewide Tag Suggestion

This plugin (and set of hacks) that I’m calling Sitewide Tag Suggestion allows you to glean the same benefits from the tag collection not just of a single blog, but of all the blogs on a WPMU installation. In short: STS adds another link to the Post Tags box, this one allowing authors choose from the entire community’s most popular tags when composing a post.

If you’ve got a blog on the CUNY Academic Commons, you can take advantage of Sitewide Tag Suggestion today. Just check out the Post Tags box when you’re writing a blog entry.

You can download the plugin here: sitewide-tag-suggestion.php.zip.

Detailed instructions for installation – which, partially as a result of my own ineptitude, involves a few hacks to WPMU’s core code – are contained inside of the file. Please note that WPMU 2.8+ is required, as is Donncha’s Sitewide Tags plugin.

Making Sitewide Tags work

Sitewide Tags is a cool plugin by Donncha O Caoimh that pulls blog posts from all over a WordPress Multi-User installation – like the one here on the CUNY Academic Commons – into a supplementary catch-all blog. The power of this plugin is that, with all sitewide blog posts aggregated into one place, you can begin to see the kinds of topics and trends that emerge from the community of bloggers. More specifically, Sitewide Tags allows you to create a tag cloud that reflects blogging activity across the entire community. (See the tag cloud at WordPress.com for a sense of what this looks like.)

I’ve got Sitewide Tags up and running here on the Commons – see our tag cloud (scroll down the page) and our aggregated blog. Getting things running seamlessly took a bit of tinkering though, and I thought it might be useful to share some of the tinkering here.

Read on for more of this (unexpectedly!) long process.

Continue reading “Making Sitewide Tags work”

New plugin: Custom Profile Filters for BuddyPress

Custom Profile Filters for BuddyPress
Custom Profile Filters for BuddyPress - click picture to download plugin

If you’ve set up a profile here on the Commons (or on some other site run on BuddyPress), you may have noticed that some of the words and phrases in your profile have turned into links that, when clicked, lead you to other profiles where those words appear. This tagging feature is a great way to find out about people in the community who share your interests, but the algorithm that BuddyPress uses to create links can be somewhat finnicky. I built this plugin to allow users to customize these tags, choosing for themselves which phrases should be linked by surrounding them in square brackets.

Here’s an example. Let’s say that, in a profile field called Academic Interests, I said the following:

I’m interested in philosophy, chewing gum, and mariachi bands.

What I really want here is for the phrases “philosophy”, “chewing gum”, and “mariachi bands” to become links. So I’ll surround them in brackets like this:

I’m interested in [philosophy], [chewing gum], and [mariachi bands].

I’m submitting the plugin to the WordPress repository for versioning, but for now you can download version 0.1 here. Comments are welcome – have fun!

Custom Profile Filters for BuddyPress