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 | Computers | 1 Comment »
It’s been longer than usual since I posted, primarily because course loads have ramped up a bit since Christmas break ended. I finally have time to post this short tip which has been helpful to me.
[More]