Archive for March, 2008

Orange Crush

Friday, March 28th, 2008
Well, I know it's the eve of the 2.5 release - I believe we're on RC2 right now. According to the wp-testers and wp-hackers lists, it's pretty close to being the next official release. However. Due to popular demand (of which I am astounded) I've finally upgraded the Orange Crush theme for 2.3.x. Notes are in the "readme" file in the download. Now, I know someone reported a "Stack Overflow" error when it comes to the theme, but to be honest I cannot replicate it for the life of me. I've had several experts look at my code (it's stemming from the functions.php file) and no one can find anything in that file that would cause such an error. Believe me when I say I've tried to replicate it, and cannot.

Part 4: Neat Little Snippets of Code That Are Useful for WordPress

Thursday, March 13th, 2008
Okay, so here we move on to Part 4 of my "taking too long to add to this" series :) I had a client this week who is an author. He does some work on practice lists, and wanted a spot to gather his writing together. The thing that he wanted was something that would count the words within his posts - since many of his lists require practice pieces to be under a certain word limit (or they just want to know how many words there are). I found a few plugins, but when I went to test them, the word count was always off. One of my test posts was 301 words long, yet the different plugins would vary anywhere form 320 to 350 words. There were different reasons for this, and to me, it wasn't worth troubleshooting 200 or so lines of code in the plugin to figure out why. So I wrote my own function instead: and it took all of 10 lines (if you count the commented sections, and the two lines it took to create the function).