Polish your code

Polish your code

If we can polish a turd, we can polish our code. Your code doesn’t have to be perfect. In fact, it probably won’t be. But it should be clean, documented, organized, and use proper syntax. It should be polished. Polishing your code today will make you a better developer, and you’ll thank yourself when you […]

WordPress responsive navigation options

WordPress responsive navigation options

Navigation is one of the most challenging battles for doing responsive design well. To preface this article, I highly recommend you study Brad Frost’s collections of responsive navigation patterns and complex responsive navigation patterns. In this post, I’ll cover two methods for handling the “toggle” method for responsive navigation in WordPress. Common responsive navigation patterns […]

A guide to using Composer in WordPress

A guide to using Composer in WordPress

Andrey Savchenko, known as Rarst in the WordPress community, has built a great guide to using Composer in WordPress. Composer is a dependency management tool for PHP projects. It brings a ton of power to the table, and this resource is great for any of us getting started with using Composer in our WordPress projects. […]

Properly using wp_reset_postdata(), wp_reset_query() and variable naming in queries

Understanding how to alter the main query and how to create custom queries in WordPress are two essentials for WordPress developers. You should familiarize yourself with a few things right away: What is the WP_Query class, including creating new custom queries for secondary loops Never use query_posts() Alter queries with the pre_get_posts hook You also […]

Backbone.js, Underscore.js and why they matter for WordPress

WordPress is transforming and you may not even know it. The project’s largely been a PHP driven framework. According to Github, the code itself is around 85% PHP and 15% JS in WordPress 3.5. In the future, JavaScript is likely to make up a majority of the project’s code. And Backbone.js and Underscore.js have a big part of that shift. We should get ready for the change, and learn how to use these new tools.