Tom McFarlin

Software Engineering in WordPress, PHP, and Backend Development

Page 172 of 428

Easier Excerpts For WordPress

Easier Excerpts for WordPress is a simple plugin, the first for Pressware Plugins actually, that we recently released.

When you think about combining the tediousness of blogging couple with the proverbial low-hanging fruit, this seemed like a natural choice for a first product. Plus, it falls in line with our goal of trying to help make a better blogging experience.

But if you’re like me, then you like reading some of the back-stories that go into projects like this. So here’s some more information on the plugin, specifically for you bloggers, and then a back-story as to why we chose it, how we chose it, and what’s up next.

Continue reading

Debug WordPress Projects

I’m of the opinion that being able to debug code is one of the must-have skills of any professional developer so it stands to reason that I think if you’re working with WordPress in a professional capacity, you should be able to debug WordPress projects.

It doesn’t matter if you’re working on the server-side or the client-side; if you’re writing code, then you need to be able to:

  • set breakpoints,
  • watch variables,
  • step into functions,
  • step out of functions,
  • step over functions,
  • change values,
  • …and so on.

Though debuggers are common place in practically every programming environment, I recently wrote a short tutorial and filmed a short video for Envato that walks users through how to debug WordPress projects.

Continue reading

Escaping Strings For WordPress Database Queries

Escaping strings for WordPress is something that developers should be doing at any place in which the user can be sending information across the wire to the database.

Core offers some nice API functions for this. But if you’re writing a raw database query using $wpdb (which is something that I recommend only when an API doesn’t offer what’s needed), then there are still options, but you may need to fall back to a native PHP function.

Case in point: mysqli_real_escape_string.

Continue reading

My Experience with a Standing Desk

Standing desks have been relatively commonplace for a few years now. I would say that it seems to be more prevalent in technology than anywhere else.

But I know better. I’ve read other more general blogs talk about them, as well. So, you know, technologists aren’t that unique after all. Who would’ve thought?

Generally speaking, they seem to be common for anyone who tend to work in a more sedentary environment.

There are plenty of articles all over the Internet about their advantages, but there are also articles that talk about how standing desks can do more harm than good.

What else would you expect, though? I’ve been using a standing desk for a little while now, and I thought I’d share my thoughts thus far.

Continue reading

CLI: A Cheatsheet For The Command-Line

The CLI is one of those tools that I think every developer should know how to use even if they don’t use it consistently. After all, we have plenty of applications for taking care of tasks, right?

The thing is, from time-to-time, it’s useful. During the process of working on projects, you may be hopping back and forth between an IDE, an SSH session, S/FTP, a task runner, debugging, and so on.

Sometimes, particularly in the beginning, it’s hard to juggle all of the commands in your head.

Though I love using applications to help take care of certain tasks, I’ve never fully let the command-line go. Sometimes, it’s just faster to type out a string of commands and let them do their work rather than poke around a number of different applications.

Maybe that’s stubborn. I don’t know. But what if you’ve not used the CLI? How do you maintain a quick reference to the available commands?

Continue reading

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑