May 21, 2012

Fixed a WordPress Feedburner Replacement Bug

ant Fixed a Wordpress Feedburner Replacement BugThis morning I logged into Feedburner to check my stats. AAAARGH! 0 subscribers on all my blogs. Seems my upgrade to WordPress 2.0.3 broke the feedburner redirect plugin.

How to fix it

I experimented for a while, and came up with this surefire fix:

  • Login as admin, go to plugins

  • Disable the Feedburner replacement, then re-enable
  • Go to options, then Feedburner.
  • Disable the redirection
  • Click the Feedburner tab again, and re-enable
  • Click "activate"
  • Now edit your .htaccess file on the server.
  • Change this line:
    RewriteCond %{HTTP_USER_AGENT} ^FeedBurner.*$

    to this:
    RewriteCond %{HTTP_USER_AGENT} ^Feed.*$

[tags]wordpress, wordpress2.0.4, feedburner, bugs[/tags]

Related Posts plugin modifications

adapter Related Posts plugin modificationsI’ve been delaying using a related entries plugin because it didn’t fit with my normal way of posting. See, it uses a WordPress custom field "keywords" to do its matching. That’s OK, but I already have all my posts marked up with inline keywords, for the Technorati plugin Simpletags.

So, when I have an itch for long enough, I scratch it. So, I’ve written an extension to the related-posts plugin which reads keywords from the post text inside [tags] [/tags] markers. In other words, it leverages the use of the Simpletags plugin. You can see it in action by clicking the post title of any entry on this site.

I’ll be submitting the code additions to the original plugin author, but I don’t know if he’ll take them, since it is sort of an edge-case. In the meantime, feel free to comment here.

Here’s my modified plugin: Related Posts Mod 2.02.

Related posts

Technorati Tags: , , ,

WordPress title suffix plugin

adapter Wordpress title suffix pluginI read some research recently which seems to show that keywords matter to search engines in your site’s “title” tag. Not only that, but position matters. Preferably your page title should precede your site title.

Unfortunately WordPress is coded to make that sort of ugly. If you simply reverse the wp_title and wp_bloginfo(‘name’) calls, you get ugliness in two ways. If what you want is “keyword – sitename”, then you have to live with the default title for your site looking like “- sitename”. Ugly. Then if you are on a titled page, you get “» keyword – sitename”. I don’t know about you, but I think that’s ugly too.

So, enjoy my tiny little WordPress plugin. It will strip out the leading “»” and will not put the dash in unless there is something preceding it. I’m no PHP god, but that was both easy and fun, due to the “hook” system WordPress implements so nicely. You’ll still have to reorder your themes to have “wp_title” listed before the sitename, but at least it will look prettier now.

Download: wp-title-suffix.zip

[tags]wordpress2,wordpress,plugins,seo[/tags]

Related posts