Hostingheaderbarlogoj
Join InMotion Hosting for $3.49/mo & get a year on Tuts+ FREE (worth $180). Start today.
Advertisement

Cheat Sheets

  • Cheat Sheets
    The Complete Guide to Proper JavaScript Usage With WordPressJavascript 400
    31 shares
    I remember thinking "What the heck do we need JavaScript for, when we have Flash?" when I was fourteen. Although I still remember how I enjoyed coding stuff with ActionScript 2.0 back then, I saw how much one can achieve with JavaScript and fell in love with it. I'm not an expert on JavaScript (yet) but I can say I'm over and done with Flash for a long time. When it comes to WordPress, the biggest blogging platform and content management system worldwide, JavaScript is - of course - very useful for many things: content sliders, lightbox galleries, slick shopping carts, UI elements like tabs or accordions... you name it. But how exactly should we use JavaScript with WordPress? Returning or echoing a bunch of HTML script elements is one way to do it - and it's wrong. In this tutorial, we're going to see how to enqueue JavaScript files inside our pages and how to pass translatable data to the JavaScript code.Read More…
  • Cheat Sheets
    The WordPress Coding Standards: Bringing It All TogetherThe wordpress coding standards
    7 shares
    When it comes to writing a series of blog posts, one of the most challenging aspects as a reader is actually keeping up with every post that is published. Even if you do manage to try and keep up, posts that are in excess of 1,000 words - especially those that include code - can take time that many of us don't have especially when it comes to juggling our work lives, home lives, hobbies, and other things. So in order to make sure that the information presented throughout this series is still presented in a digestible way, I thought I'd experiment with doing a summary of the entire series. That way, for those of you who have missed an article or haven't had the time to sit down and go through each article, can still get the gist of each point mentioned throughout the articles. With that said, let's take a look at everything we covered when reviewing the WordPress Coding Standards.Read More…
  • Cheat Sheets
    The WordPress Coding Standards: Database Queries and Formatting SQL QueriesThe wordpress coding standards
    39 shares
    Aside from the summary that we're going to be providing as the last article in this series, this is the last explication of the WordPress Coding Standards that we're going to be covering in this series. We're going to be covering the nuances of database queries and how to format SQL within the context of your code. Of course, this wouldn't be without its own set of caveats: Generally speaking, there are APIs that are already available that can prevent us from needing to write SQL on our own; however, these APIs don't catch every single case that we actually need. After all, how can developers implementing APIs know exactly what and how we're going to build something? To that end, we're going to take a look at the APIs that are available for executing database queries, how to use them, and then how to define our own queries when the APIs fall short.Read More…
  • Cheat Sheets
    The WordPress Coding Standards: The Ternary Operator and Yoda ConditionsThe wordpress coding standards
    5 shares
    At this point in the series, we've covered a lot of ground. Up to now, we've discussed the following topics: Naming Conventions and Function Arguments The Use of Single Quotes and Double Quotes Indentation, Space Usage, and Trailing Spaces Brace Style, Regular Expressions, and PHP Tags Lots of stuff, right? In this particular article, I thought we'd take it a bit easier before jumping into the final topic. As such, we're going to cover two really simple topics (that are often either ignored or overcomplicated). Specifically, we're going to talk about the ternary operator and we're going to talk about Yoda conditions.Read More…
  • Cheat Sheets
    The WordPress Coding Standards: Braces, Regular Expressions, and PHP TagsThe wordpress coding standards
    15 shares
    In this series, we've been taking a deep dive into the WordPress Coding Standards in order to get the word out about them, understand them, and begin to practically apply them in our day-to-day work. If you're just joining the series, so far we've covered the following topics: Naming Conventions and Function Arguments Single Quotes and Double Quotes Indentation, Space Usage, and Trailing Spaces In this article, we're going to continue building on top of the content in the previous article: Specifically, we're going to be taking a look at brace style, regular expressions, and nuances of working with PHP tags within the context of building WordPress themes, plugins, and applications.Read More…
  • Cheat Sheets
    The WordPress Coding Standards: Indentation, Space Usage, and Trailing SpacesThe wordpress coding standards
    8 shares
    The entire purpose of this series to help expose the WordPress Coding Standards, why they matter, and how to write quality WordPress code. In order to do this, we're taking an in-depth look at each section of the WordPress Coding Standards. So far, we've covered: Naming Conventions and Function Arguments Single Quotes and Double Quotes Today, we're going to be covering the importance of white space. Specifically, we're going to cover indentation, space usage, and trailing spaces. As easy as it sounds, these are several of the most ignored or misused aspects of the codings standards.Read More…
  • Cheat Sheets
    The WordPress Coding Standards: Single Quotes and Double QuotesThe wordpress coding standards
    11 shares
    In this series, we're taking a look at the WordPress PHP Coding Standards in order further understand how quality WordPress code should be written. Sure, all of this is documented in the WordPress Coding Standards and it's a site that every WordPress developer should have bookmarked and on hand when working on a theme, a plugin, or an application; however, if you're just getting into WordPress development, then it's important to understand the rationale as to why the conventions are the way they are. In this article, we're going to be taking a look at the use of single quotes and double quotes specifically when dealing with strings. This may be the shortest, most straightforward article in the series, but it should cover some important nuances as it relates to working with single quotes, double quotes, and strings in WordPress.Read More…
  • Cheat Sheets
    The WordPress Coding Standards: Naming Conventions and Function ArgumentsThe wordpress coding standards
    11 shares
    In this series, we're taking a deep dive into the WordPress Coding Standards - specifically, the PHP coding standards - in order to evangelize and understand how quality WordPress code should be written. Despite the fact that this is documented within the WordPress Developer Handbook, I think there's something to be said for understanding the rationale behind why some things are the way that they are. Remember: Our ultimate goal is to make sure that we're writing code that conforms to the coding standards so that we, along with other developers, are able to more easily read, understand, and maintain code for themes, plugins, and applications built on top of WordPress. In this post, we're going to be taking a look at how to handle naming conventions and function arguments.Read More…
  • Cheat Sheets
    The WordPress Coding Standards: An IntroductionThe wordpress coding standards
    18 shares
    When it comes to building WordPress-based products, we're somewhat cursed (or blessed, depending on how you see it), with a double-edged sword: Because WordPress is written in PHP, it's relatively easy to get WordPress - or the project itself - to do whatever it is we want to do all the while avoiding best practices. But this raises the question: What's the point of an API or formal coding standards if we're simply going to ignore them? We've written quite a bit about the WordPress APIs in previous articles, and we've touched on the WordPress Coding Standards, but we've never really taken a deep dive into the coding standards, understanding each aspect of them, and why they matter. So in this series, we're going to be doing just that.Read More…
  • Cheat Sheets
    WordPress Cheat Sheets: Template Heirarchy MapWordpress cheat sheet emplate map
    34 shares
    Next in line for our WordPress Cheat Sheet series, The Template Hierarchy Mapl! If you haven't seen the first posts in this series, this is a new batch of these quick pocket guides that you guys n' gals can download, save to your phones for a fast reference, or even print out and keep next to your desk while you're working on customizing WordPress to do your bidding.Read More…
  • Cheat Sheets
    WordPress Cheat Sheets: Theme Anatomy ModelWordpress cheat sheet themeanatomy
    26 shares
    Next in line for our WordPress Cheat Sheet series, The Basic WordPress Theme Anatomy Model! If you haven't seen the first posts in this series, this is a new batch of these quick pocket guides that you guys n' gals can download, save to your phones for a fast reference, or even print out and keep next to your desk while you're working on customizing WordPress to do your bidding.Read More…
  • Cheat Sheets
    WordPress Cheat Sheets: The Loop Visual ModelWordpress cheat sheet the loop model
    31 shares
    With the popularity of our old WordPress cheat sheet, we've decided to fire up a new batch of these quick pocket guides that you guys n' gals can download, save to your phones for a fast reference, or even print out and keep next to your desk while you're working on customizing WordPress to do your bidding. Today's cheat sheet: The Loop Visual Model!Read More…
Advertisement
Advertisement