Skip to main content

Ten Tips for Becoming a Better WordPress Developer

It’s no secret that here at Web Design Ledger, we love WordPress. It’s what powers this website as well as inspires the content we publish on a regular basis. We’ve discussed WordPress numerous times before on the site and today we’re going to cover some of the things you can do to become a better WordPress developer.
I am going to cover a little bit from across the board as to what we can do to become WordPress developers. Some items take only a minute or two to complete while others might take a bit more initial effort. I promise though that through it all, we’ll get our development skills to a much higher level. The list does not go in order of importance, but I would say that all 10 of the tips could each be #1.

1. Build your own theme options panel for easier customization

If you’re watching the trends of premium WordPress themes, you’ll notice the growing trend of theme options panels. Everybody wants them and everyone (in my opinion) honestly needs them. They’re popping up in paid themes, custom themes and free themes, and for a good reason – they’re highly useful.
wordpress tips
A theme options panel can give yourself (or your clients) the added benefit of being able to change a host of things on the WordPress theme without ever touching any codes. With items such as advertisement blocks, carousel boxes, newsletter & rss boxes and much more being required for a majority of theme developments today, a theme options panel is something that every theme developer should know how to create. You can read up on how to create your own WordPress theme options panels here.

2. Understanding short codes can go a long way

Short codes are another item that can make your theme that much more special in the hands of the end user because of it’s ease of use. Short codes are a simple alternative to adding tricky codes to a post/page over and over again. Giving your themes user the ease of use can ensure that you’ll be the person they go to for future work.
Creating a short code is easy. Simply open up your theme’s functions.php file and add the following code to it.
function wdl() {
     return 'Web Design Ledger rules!';
}
add_shortcode('wdlrules', 'wdl');
With the above saved in your theme’s functions.php file, you can now add your shortcode to any post/page on your WordPress powered website. Simply add [wdlrules] to your post and it will return the text “Web Design Ledger rules!”
To learn more about the custom things you can do with WordPress shortcodes, you can check out the following article from smashing magazine.

3. Mastering WordPress conditional statements

Conditional statements in your WordPress theme can really take your website from the feeling of normal blog to the feeling of holy crap how did they just do that! And the beauty of it is that with a little bit of know-how and a little bit of code hacking, you can achieve this effect. The base of conditional elements is rooted in basic php codes, so if you’re aware of php at all, you’re one step ahead of the curve. If not, don’t worry because it’s simple to pick up.
For instance, if you’re wanting to display a welcome box on your websites home page and nowhere else, the following code will take care of that.
if (is_home()) {
     echo 'YOUR WELCOME BOX CODES HERE';
} else { }
You can notice the basics of the code above as well as see how I added in the “else{}” piece, which can help you along the way if you’re wanting to even customize the theme further. Checking out this article by Web Design Wall will help you dive deep into the world of conditional elements and what they can do for you.

4. Streamline your development for faster results

If you could cut your theme development time in half, would you do it? If you’re sane, I am going to assume that you said yes. Well, it’s pretty simple to streamline your development and allow you to tackle more jobs in less time. The first thing you should make sure you’re well aware of are dummy posts. You can download dummy posts that someone else created (I released a dummy post file on WP Guerrilla recently) or you can take a few minutes to create one that fits your needs a bit better.
The idea of creating your own dummy posts is that you’re able to instantly load the file into WordPress and have all of the posts/pages/categories that you need within 20 seconds or so. First, you’re going to create everything in your WordPress test install (categories, posts, pages, ect) and then head over to your WordPress admin page and click the “EXPORT” link under your TOOLS sidebar. Export your posts. Now, any time you want to load those posts onto a new test WordPress install, you can do so by going to IMPORT under the same TOOLS sidebar section.
wordpress tips
Another idea would be to create your own theme framework. Theme frameworks like Thematic, Thesis, WP Framework, Guerrilla Theme and many others help developers have a solid base to start from when building custom WordPress themes. I can personally attest to the fact that a theme framework has saved me hundreds of hours in the past few months alone. You can also build your own custom theme framework if you notice that you’re using the same items (header, nav, footer, sidebar, post wraps, ect) to save your time and also allow you to customize it easier.

5. Create theme specific widgets for easier use

Along the lines of the first tip I gave above, creating a theme specific WordPress widget can help allow your themes user more easily customize the look and feel of the theme. By giving different options like ad block widgets, related post widgets or various other widget blocks, your themes user can customize and rearrange the sidebars and other areas of your theme with ease.
wordpress tips
For more information on how you can write your own WordPress widget, Justin Tadlock wrote up an awesome article on the subject.

6. The little things can really go a long way

When you’re building a theme for any reason, the little extras you put into it to polish it off will set it apart from some of the sloppy work out there that is clogging the web waves. Standing out by going the extra mile is a piece of cake when you follow the couple of items below and add them into your releases.
Can you think of other little items to add into your themes that will help set your work apart from everyone else’s?

7. Use php codes instead of plugins as much as possible

Doing this quick little trick not only saves the end user time from having to download/install plugins, it also gives you some extra added know-how for future work – which is what we’re after here right; becoming better WordPress developers?
Above I linked to an article that tells you how to show related posts in WordPress without using a plugin, but what about other items? What about if we wanted to show the tweet meme button without a plugin? Copy/paste the code below into your theme where you want the button to show and style the div accordingly, giving it float, margin, border, etc.
<script type="text/javascript">
     tweetmeme_source = 'webdesignledger';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"> </script>
Starting to use your imagination, I am sure you can decipher a few other plugins and stick codes straight into your theme’s files -anything from the share this post boxes to the WordPress page navi codes and more.

8. Learn how to make WordPress as lean and mean as possible

The speed of your blog can be quickly bogged down by excess script files and codes that plugins and third part scripts create (like the tweet meme buttons, digg this buttons, facebook fan page boxes, ect). By simply applying a plugin or two to your theme and changing a few lines of code in a couple of files, you can turn your WordPress theme into a lean, mean, fast loading machine.
The first plugin I think that every blog should utilize is the wp super cache plugin. The plugin turns your dynamic pages into static html pages that it serves to your visitors which decreases load times significantly. Another plugin would be the Optimize DB plugin by Joost De Valk which does just what the name says – optimizes your database. For more hacks and tips on how to speed your blog up, WP Beginner has an awesome article on it.

9. WordPress hacks can be your #1 friend

WordPress is great for the blogging community. But with the right amount of hacks and adjustments, WordPress can be great for the web community as well. Turning your WordPress website into a CMS can be done with a few simple plugins. Below is a simple hack that will help reduce spam by disabling the ability to leave comments on your blog for anyone who comes to your blog with a NO REFERRER result (spam bots, ect).
function check_referrer() {
    if (!isset($_SERVER['HTTP_REFERER']) || $_SERVER['HTTP_REFERER'] == "") {
        wp_die( __('Please enable referrers in your browser, or, if you\'re a spammer, bugger off!') );
    }
}
add_action('check_comment_flood', 'check_referrer');
Smashing Magazine has a list of other great WordPress hacks you can read:

10. Keep up with the latest WordPress developments

One of the most important things you can do as a WordPress developer is keep up with the industry you are a part of. If you’re unaware that WordPress 2.9 is going to be released very soon, or unaware that there were some vulnerabilities in WordPress 2.8.4 and that is why they released 2.8.5, I would suggest checking in on some of the WordPress development blogs. Below are a list of a few of my favorite, which can not only keep you up to date on security and WordPress releases but also give you valuable tips, tricks and hacks for WordPress.
wordpress tips
So what about you? Do you have any tips or tricks that the other readers here on Web Design Ledger can learn from? If so, drop them in the comments. I’m always up to learn some new tricks, and I hope you learned some in this article as well.


Comments

Popular posts from this blog

Evolution Of Computer Virus [infographic]

4 Free Apps For Discovering Great Content On the Go

1. StumbleUpon The granddaddy of discovering random cool stuff online, StumbleUpon will celebrate its 10th anniversary later this year — but its mobile app is less than a year old. On the web, its eight million users have spent the last decade recommending (or disliking) millions of webpages with a thumbs up / thumbs down system on a specially installed browser bar. The StumbleUpon engine then passes on recommendations from users whose interests seem similar to yours. Hit the Stumble button and you’ll get a random page that the engine thinks you’ll like. The more you like or dislike its recommendations, the more these random pages will surprise and delight. Device : iPhone , iPad , Android 2. iReddit Reddit is a self-described social news website where users vote for their favorite stories, pictures or posts from other users, then argue vehemently over their meaning in the comments section. In recent years, it has gained readers as its competitor Digg has lost them.

‘Wireless’ humans could backbone new mobile networks

People could form the backbone of powerful new mobile internet networks by carrying wearable sensors. The sensors could create new ultra high bandwidth mobile internet infrastructures and reduce the density of mobile phone base stations.Engineers from Queen’s Institute of Electronics, Communications and Information Technology are working on a new project based on the rapidly developing science of body-centric communications.Social benefits could include vast improvements in mobile gaming and remote healthcare, along with new precision monitoring of athletes and real-time tactical training in team sports, an institute release said.The researchers are investigating how small sensors carried by members of the public, in items such as next generation smartphones, could communicate with each other to create potentially vast body-to-body networks.The new sensors would interact to transmit data, providing ‘anytime, anywhere’ mobile network connectivity.Simon Cotton from the i