WordPress Tips & Tricks

Turn on WordPress Debugging

This is only intended for use in testing and development, so avoid using this on a live site. All you need to do is add this to the wp-config.php file and you’ll get some handy debugging information that might come in handy if you’re troubleshooting.

define('WP_DEBUG', TRUE);

Yoast’s Anatomy of a WordPress Theme Infographic

Yoast is a major contributor to the WordPress community and he’s a very talented individual. He’s created a very funky infographic that visually explains how a theme and WordPress in general fits together. I love this.

Link: http://yoast.com/wordpress-theme-anatomy/

Change your login URL using .htaccess

This tip is awesome. It lets you use http://example.com/login (or whatever you want) with a simple rewrite rule in your .htaccess. Big kudos to Jake Rocheleau for his nice page of developer snippets for this one (http://skyje.com/wordpress-code-snippets/).

RewriteRule ^login$ http://example.com/wp-login.php [NC,L]

Fetch the Latest WordPress Tarball using cURL

For fans of the command line, use this command to get the latest version of WordPress using cURL. Simple, yet handy if you’re working with WordPress a lot. Thanks to http://snipplr.com/users/beneberle/ for this tip.

curl wordpress.org/latest.tar.gz > wordpress-latest.tar.gz

Just Say No To Word

If you’re battling with users copying and pasting text from Microsoft Word, you’ll know what it can do to formatting. This little bit of code with give them an alert. Many thanks to http://snipplr.com/users/travishines/ for this one.

add_action( 'admin_notices', 'custom_admin_notice' );
function custom_admin_notice(){
global $current_screen;
if ( $current_screen->parent_base == 'edit' )
echo '

NOTE – Please do not copy and paste text from Microsoft Word. You can write and save your post here in WordPress, or copy it from a plain text app (Notepad or TextEdit). Microsoft Word adds a ton of messy inline tags that break things.

‘;
}

WP Custom Greeting Box

Whilst it’s not technically a tip, it’s actually a plugin that you can use to display a message based on the referring URL. I’m sure you’ve seen the “Welcome Googler” message, well this is what you can do with this. It might be interesting to some folks, but not something we considered an essential plugin.

Link: http://wordpress.org/extend/plugins/wp-greet-box/

Google Analytics

Whilst not WordPress specific, web analytics are essential if you want to know where you visitors are coming from and what they’re doing on your site. Google have a plethora of other really useful tools for web developers and webmasters that we recommend you explore.

http://www.google.com/analytics/

WebPageTest.org

WebPageTest.org is one of many web performance testing tools that gives you a score and a breakdown of how quick your site loads. Not only does a slow site suck for your visitors, but search engines give more love to sites that load quickly.

Link: http://www.webpagetest.org/

IconFinder

If you’re a web designer or developer you will need icons, look no further than IconFinder. We think it rocks, check it out and we guarantee you’ll bookmark it.

Link: http://www.iconfinder.com/