RSS Pt. 3

It seems I have discovered a bug in the more recent builds of WordPress that directly affects the serving of RSS/Atom feeds, preventing them from updating. I have submitted this bug to the WordPress bug system, and am awaiting resolution.

Introducing

WP Content Negotiator, a plugin for WordPress. This plugin changes the MIME type the page is sent as, in a previous post, I explained that xhtml is not supposed to be sent at text/html.

More info, and a link to the plugin can be found here: WP Content Negotiator Page

And yes, I am running my own plugin.

Adsense Reducks :)

First off, I did spell redux like that on purpose :)

I fixed all my google crapware code, with some ugly (yet valid) hacks.

Thanks to anyone who might have thought of helping.

Adsense

I’ve been trying to get adsense to work on my page, but the varibles don’t seem to get passed to the script, so it doesn’t work. If anyone could peek at the sidebar code or something, and give me a tip, I’d be quite happy :-)

Gravatar

I’ve installed the Gravatar plugin on this here weblog, so any commenters that have a gravatar may now expect these to show up.

Read the rest of this entry »

Content Management and MIME Types

Want to serve your blog as xhtml 1.1 properly (application/xhtml+xml), but your page keeps showing as text/html?

I’m going to present a method to change this properly, and provide your site with the changes you want, while being transparent to browsers that don’t support the method.

I’m going to provide the instructions for modifying a kubrick-based template, but this code should be similar pretty much anywhere, just it’s location may change.

First, there should be some code appearing like this in your header.php file.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type');
?>; charset=<?php bloginfo('charset'); ?>" />

Now, this tells the browser that your page is using the XHTML 1.0 Transitional, and it is using text/html, by default.

We, of course, want to use XHTML 1.1, because, well, we’re better than that :-D

I’m going to give you the code on the next page that you will be using.

Pages: 1 2 3