Those of you using WordPress as your Content Manager/’blog engine have undoubtedly been frustrated by the frequency of updates to the WordPress engine of late.
WordPress 2.1 has had 3 major “security updates” this year.
Compare this to the 8 updates for 2.0 in 2006, which included “preview releases” in addition to “feature updates” and “security updates”:
- 2.0.7: January 15, 2007
- 2.0.6: January 05, 2007
- 2.0.5: October 25, 2006
- 2.0.4: July 26, 2006
- 2.0.3: June 1, 2006
- 2.0.2: March 10, 2006
- 2.0.1: January 31, 2006
- 2.0: December 31, 2006
This isn’t to say that WordPress is “buggy” by any means, just that with all these frequent (and mandatory) updates, going back in and modifying system files (specifically the footer) to include inline code to render inline advertisements and analytics tracking just adds to the pain. In that regard I have a “solution.”
Rather than placing your “every page” custom code in the footer, why not add a text-widget that contains the code that you’d normally put at the bottom of the page?
This means your code is automatically in place after you’ve verified your text widget is set to load.
There are a couple things to take note of:
- Your theme may not load your widgets on each page (individual articles, pages, search results, etc.). This isn’t acceptable for analytics code, so it’s back to the “manually update the common footer” method.
- Some themes render the widgets before the page content (which I think is bad practice). This isn’t much of a problem for page analytics, but for inline advertisements that must parse the page’s text, and if the text isn’t loaded it can’t be parsed (a “good” script would handle this situation, but you can’t rely on “good” programming).
Keeping those two items in mind, however, you might save yourself a lot of time with frequent updating.