Shin

bbPress 2.0.1 released

bbPress 2.0.1 has been released. Tempting.

WordPress plugins used, 2011

Here’s a list of all the WordPress plugins I’m using at the moment in case anyone is interested.
Read more…

Smart 404

Now here’s a great plugin I wish I’d discovered several years ago.
Smart 404 intercepts standard 404 messages and looks through your posts, tags and categories to see if it can come up with a match of what the visitor to your site was looking for. If it finds it, it will display it as a standard archive view displaying the posts.
Example: http://x111.com/azumanga doesn’t exist, Smart 404 however finds a tag for Azumanga Daioh and thus displays http://x111.com/tag/azumanga-daioh/ which is a HELL of a lot better than giving your visitor a blank ‘oops, it’s gone’ page.
If Smart 404 doesn’t find anything, at all, it goes to your standard 404 WordPress page, in which you can add some code to have Smart 404 generate a list of posts with the keyword a visitor was looking for (example). Again a big improvement.
I’m very impressed with this plugin, I only wish I’d have come across this years ago when I was moving all the old reviews into WP, that would have saved me from the big nosedive in daily traffic.

(download from the WordPress directory)

Website screenshots for lazy people


If you use a lot of screenshots of websites for your blog you can easily make them through the wonders of wordpress.com.
Here is the URL:
http://s.wordpress.com/mshots/v1/http%3A%2F%2Fx111.com%2F?w=612
All you have to do is insert your required URL in the place of the ‘x111.com’ part of the link and resize (‘w=300′) to your required width.

Disable automatic WordPress paragraphs

WordPress automatically wraps content in html paragraphs. Sometimes this can be undesired, for example when you’re making one-liner posts using the new post formats for links or status updates. The easiest way around this is by setting the filter in your template.
It looks like this, snippet taken from my format-status.php:

remove_filter('the_content','wpautop');
the_content('Read more...');
add_filter('the_content','wpautop');

First we use remove_filter to tell WordPress not to use automatic < p> tags for the_content, then we output the content, and immediately afterwards we use add_filter to restore the filter or it’ll also be off for all the subsequent posts on the page.

I like draft posts

I like draft posts so much I’m using my own plugin to give me an overview of all of them on the WordPress dashboard seeing as the default view only shows the 5 most recent ones.
My pile of draft posts seems to be getting bigger. It’s just nice to be able to draft an idea, do a little searching, add some links, sit on it for a while, formulate a paragraph here and there, and take your sweet time before getting it to the state where you like to hit publish. For some posts anyway, others (like this one) are obviously just fire and forget.

WordPress 3.0

My my, how does time fly.
WordPress 3.0 has been released and brings us;

  • bulk updates,
  • a new default theme,
  • merge between WordPress and MU<,/li>
  • new theme apis,
  • post types (I like, a lot),
  • taxonomies and lots and lots more.

The only thing now is to find time to actually upgrade.
I wonder what the impact on MU is going to be. And if my theme is compatible.

SQL to change your WordPress links

A simple quickie in case I ever forget, and you might like it too.
Say you have static content, like a folder of pictures, you want to move or rename. But all your posts link to the old folder.
Here’s a quick way to update all your posts in sql, for example using phpMyAdmin:
update wp_posts set post_content = replace(post_content, '\/anime\/pics', '\/anime2\/pics');
In my case this replaces all the links containing ‘/anime/pics’ with ‘/anime2/pics’ as that’s what I renamed the anime folder to.
Note the \/ in the sql statement, you need to escape all your / slashes in the statement by putting a \ before it, or your get errors.

Threaded comments

Something I’ve been meaning to add for quite some time, threaded comments. It makes it a lot easier to reply to certain comments and maintain the context. Give it a try and say hi. :)

Work in progress... not home!
Trying to get all/most of the new code working before I start on the eyecandy.