By Will on January 22nd, 2009 | WordPress | 5 Comments »
Almost every WordPress theme has a 404 template. Some are better than others, and a few are quite impressive, but on problem that pervades all of them is the fact that editing them requires opening finding and opening the correct template file. This is OK for people who know about HTML and PHP and are familiar with WordPress, but what about technically challenged people (like your Grandma)? They’re not likely to be able to edit a WordPress template, so they will be stuck with whatever you give them. If you create a good template, this may be sufficient, but there will still be people who want to change something.
Thankfully you can provide a much simpler solution for people who don’t want to edit your templates. With this solution, users can edit the 404 page contents just like it were any other page. Here’s how it works.
[More]
By Will on January 14th, 2009 | PHP | 4 Comments »
EDIT: Nick Ohrn pointed out that a function exists for doing this automatically. The following post is still a valid look at how this could be implemented if the functionality didn’t already exist, but it is better to use extract because it is likely more efficient.
Associative arrays are one of my favorite PHP features. They’re simple to use and easy to understand. Sometimes though, being able to reference the values of associative arrays with variables can be more convenient. Today I’m going to share a simple way to convert an associative array to variables.
[More]
By Will on January 14th, 2009 | Apache | 3 Comments »
I use Wamp Server together with NetBeans to develop PHP applications on my local machine. This works well because I can do debugging (thanks to xdebug) and can readily view and edit files. I usually don’t like to place projects in the c:\wamp\www folder, preferring instead to place them in more logical places in my personal directory.
[More]