Tom McFarlin
Tom is a self-employed developer who loves writing, building, and sharing WordPress-based projects. He runs Pressware where he provides WordPress goods and services. You can follow him on Twitter.
Tutorials
  • Code
    The Beginner’s Guide to Unit Testing: Building Testable ThemesThumbnail
    15 shares
    In the first two articles in this series, we took a high-level look at what unit testing is and how to apply it in the context of plugin development. Of course, there's more to WordPress than writing plugins, isn't there? A significant part of a WordPress developers job – for some it's the most significant part – is theme development. So in this article, we're going to take a look at how to develop testable themes. Specifically, we're going to take a look at how themes are different than plugins and then we're going to write an extremely simple theme that will be used to demonstrate the principles of unit testing and that can be applied in future development.Read More…
  • Code
    The Beginner's Guide to Unit Testing: Building a Testable PluginThumbnail
    3 shares
    In the first part of this series, we took a high-level look at testing methodologies and gave some cases as to why it's beneficial for us to begin doing in our WordPress projects. We also took time to setup PHPUnit and the WordPress Tests in order to begin building our first testable plugin.Read More…
  • Code
    The Beginner's Guide to Unit Testing: What Is Unit Testing?Thumbnail
    14 shares
    Depending on your background, you may or may not have heard of unit testing, test-driven development, behavior-driven development, or some other type of testing methodology. Often times, these methodologies are applied in the context of larger software systems or applications and less in the context of WordPress-based projects (though it is getting better!)Read More…
  • Code
    The Complete Guide To The WordPress Settings API, Part 8: Validation, Sanitisation, and Input IIWp api 8
    25 shares
    We've reached the final article of the series. In the last post, we took a look at introducing validation, sanitization, and a couple of basic input elements that we can take advantage of when building option pages. In this article, we're going to take a look at the final set of three options and how to hook them up to the front-end of the theme.Read More…
  • Code
    The Complete Guide To The WordPress Settings API, Part 7: Validation, Sanitisation, and Input IWp api 7
    9 shares
    If you're just now joining us, we've covered a lot of topics in this series – we've attempted to give a complete overview of the WordPress Settings API as well as its related functions. We've discussed settings, options, navigation, and menus. We've also been working through practical examples employing each of the topics we've discussed.Read More…
  • Code
    The Complete Guide To The WordPress Settings API, Part 6: Menu PagesWp api 6
    19 shares
    In Part 3 of this series, we surveyed the various menu functions that the WordPress API provides. If you've been following along, then you know that we've already setup a settings page for our theme by using the add_theme_page function. Although introducing menus and submenus aren't explicitly part of the Settings API, they play a role in building custom functionality, plugins, and/or themes.Read More…
  • Code
    The Complete Guide To The WordPress Settings API, Part 5: Tabbed Navigation For Your Settings PageWp api 5
    14 shares
    At this point in the series, we've taken a close look at the Settings API and what it has to offer. We've even begun creating our own theme to help demonstrate everything we've been learning. We've covered sections, fields, settings, menus, pages, and more.Read More…
  • Code
    The Complete Guide To The WordPress Settings API, Part 4: On Theme OptionsWp api part4
    21 shares
    In the last article, we took a deep dive into the various types of menus that are supported by the WordPress API. Although they aren't necessarily part of the Settings API, they play a key part in development especially when working on more advanced plugins and themes. This article is going to put menus to practical use as we begin building out our Sandbox Theme by refactoring our existing settings and adding several new pages. Note that if you're just joining us, make sure that you've caught up on the previous articles and that you have the latest version of the Sandbox Theme from the repository on GitHub.Read More…
  • Code
    The Complete Guide To The WordPress Settings API, Part 3: All About MenusWp api part3
    25 shares
    At this point, we've learned why the Settings API matters, we've learned all about sections, fields, and settings, and we've even setup a Sandbox Theme that we're using to develop functionality as we explore the API. In this article, we're going to take a look at how we can interface with the WordPress menu system. It's important to note that this isn't actually a part of the Settings API, but it's so closely related that we should familiarize ourselves with how to use it. As our themes and/or plugins become more complex, we need to know all of the various ways that we can include them into the WordPress Dashboard. In this article, we're going to be taking a look at the various WordPress menu functions, when to use them, when to avoid them, and the situations to which each function lends itself best.Read More…
  • Code
    The Complete Guide To The WordPress Settings API, Part 2: Sections, Fields, and SettingsSettings api part 2
    15 shares
    When it comes to developing WordPress Themes and Plugins, there are a number of different ways developers are creating their menus, options, and validation functionality. The thing is, there's really only one way to properly do this within WordPress: the Settings API.Read More…
  • Code
    Guide to Managing Premium WP Projects – Part 4: MaintainingPreview
    6 shares
    There are a number of important considerations to make when working on premium WordPress-based projects. Up to this point, we've taken a look at some strategies for planning, building, and marketing projects but we've yet to look at what it takes to actually maintain one.Read More…
  • Code
    The Complete Guide To The WordPress Settings API, Part 1: What It Is, Why It MattersSettings api preview image
    54 shares
    As we've mentioned numerous times here on WP Tuts (and as you've no doubt noticed), there has never been a better time to be a WordPress Developer. Be it client work or product development (with either themes or plugins), getting started in the WordPress ecosystem is almost more of a question of 'where' rather than 'how.'Read More…