Sometimes you’re browsing around and wondering whether a blog is a WordPress or not (at least I am)… So I created a small script that detects that, and show the version of the WordPress as well. A useful tool for all you blackhats out there too perhaps? Go grab the Show WordPress version Greasemonkey script!…
WordPress theming: pushing trackbacks down
I was playing around with my comments section as I wanted to style trackbacks differently from “normal” comments, and while playing around, I decided to just bump them down. The problem with the trackbacks was that they were interfering with the comment discussion. And as I want to keep that discussion as lively as possible,…
Fixed category subpage titles and a fix in permalink redirect plugin
Subpages of category archives were improperly 301′d back to the main category page… Fixed that now, so update NOW: the permalink redirect plugin. I fixed the title for category subpages too btw, check how this works:
Permalink Redirect Plugin for WordPress
And yet another WordPress plugin fell out of my hands. This one checks the current URL against the permalink WordPress has defined for the post, page or category you’re in, and redirects to that permalink if they don’t match. This prevents subcategories from being linked to directly without the main category in the URL, so…
Serving XHTML as application/xhtml+xml
When you’re coding XHTML, you should deliver it as application/xhtml+xml. The problem is however, that once you do that, IE 6 & 7 break horribly… For your pages to render properly in those browsers, you’d need to set the mime type to text/html. Some very bright people have thought this problem in the past and…
Showing subcategories on WordPress category pages
I wanted to show the subcategories for a given category on it’s category page in the sidebar, but somehow the code for this wasn’t readily available. Basically you need to check whether there are any children, and if there are, list the categories with the current category as a parent or grandparent. The following code…
WordPress subpages going supplemental: the fix
I noticed that the subpages for my blog (you can find links to them in the footer of this page), were all going supplemental. This wasn’t really surprising as those subpages were displaying exactly the same as the frontpage: 5 full posts and a “next” and “previous” link to the next pages. This meant that…
WordPress 301 redirect
For all you developers out there building WordPress plugins or coding in the core of WordPress, this is the “proper” way of doing a 301 redirect in WordPress: Easy isn’t it? Now go off and USE IT. I’m seeing way too much people who forget to add the “,301“, and stick with the default, which…
NoIndex for RSS feeds!
As regular readers might recall, I wrote a guestpost on SEOEgghead asking for an equivalent of “noindex, follow” for RSS feeds. Now it seems the search engines have been listening a bit, or at least have been thinking in the same direction… In a post about preventing duplicate content with your feeds (which I encountered…
Google, WordPress and trackback URL’s
I’ve been playing around with WP-Googlestats for some blogs, and I noticed something I really didn’t think about until now. Googlebot, and other spiders, all spider the trackback URL’s that are in the meta data for posts. But since it spiders that and it’s not really sending a trackback, it get’s redirected to the post…