Posted by Ed Nailor in Development
on Jul 30th, 2010 | 0 comments
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!
[code]define('WP_DEBUG', true);[/code]
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...
Posted by Ed Nailor in WordPress
on Jul 7th, 2010 | 0 comments
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' );
12
if ( !session_id() )
add_action( 'init', 'session_start'...
Posted by Ed Nailor in WordPress
on Jun 17th, 2010 | 0 comments
I just want to say, WordPress 3.0 is finally...
Posted by Ed Nailor in WordPress
on Jun 16th, 2010 | 0 comments
Now you can control the styles of the WordPress content editor (TinyMCE) by using the following snippet in your functions.php file, and by adding an editor-style.css file to your...
Posted by Ed Nailor in WordPress
on Jun 16th, 2010 | 0 comments
Very cool snippet to add a WordPress login form anywhere you want:
PHP
<?php wp_login_form(); ?>
1
<?php wp_login_form(); ?>
More details @...