2010 July | Ed Nailor

Welcome to EdNailor.com

Ed Nailor... wishes

Yes, I wish I was there, but today I am not. So today, this is what's on my mind... Enjoy!

How Clean is Your Code?

WordPress theme developers… How clean is your code? Did you know that you can find out very easily? Simply enable the following line within your wp-config.php file, and you will see if your code is clean! define('WP_DEBUG', true); This will display WordPress warnings and notices. I recently did this and found a few issues on my main Framework I use for development. Not that there were a lot of issues, mind you, but here were a couple of the notices my theme had: Notice of Deprecated WordPress function: This notice / warning lets you know that one or more of the functions you are using in your...
read more

Using Sessions in WordPress

WordPress does not, by default, allow sessions. In a recent project, I needed to use sessions. So how do you use sessions in WordPress? Simple. Add the following line to your functions.php file within the open and close php tags, and you can then use sessions as needed. if ( !session_id() ) add_action( 'init', 'session_start'...
read more