Archives by date

You are browsing the site archives by date.

Advanced Category Excluder

I use the WordPress plugin Advanced Category Excluder to hide a few categories from the front page. When I upgraded my (this) server to PHP 5.3 yesterday, the plugin broke any WordPress site where I had it running. This fixes it: for php 5.3 change the lines function ace_where(&$where,$filter=”") function ace_join(&$join,$filter=”") to function ace_where($where,$filter=”") function [...]

Escaping Apostrophes in Sed

I’ve had a need to escape a literal apostrophe in an email and couldn’t figure out how to do it. Until I found this post on the Sed Yahoo Group: sed has supported apostrophe substitution for many years. Use the xHH notation to indicate any hex character. Since the apostrophe is 0×27, you can do [...]

Post Reporting II

Post Reporting II

As promised in my first post reporting entry, this is a follow up article. I’m going to describe how to easily edit your theme template to insert PHP code rather than using shortcodes, well, mostly. I’m also going to show how to achieve the same effect for single posts by using a sidebar widget. If [...]

Post Reporting I

Post Reporting I

A couple of days ago I was chatting to Darren over at My Life in Leeds (running WordPress) and he asked if I knew a way that a visitor to his site could report changes to the factual content of articles. Darren publishes reviews of Leeds’ businesses and attractions and should one business change its [...]