Tom McFarlin

Software Engineering in WordPress, PHP, and Backend Development

Page 98 of 427

Writing Personal Tools (And the Process Behind It)

I recently shared a post about the idea of understanding what we’re doing to code before we code it. This is something that I think it imperative to solving problems correctly (assuming they are correctly defined).

It’s one of those things that come more easily with working on building things with other people. But what about when it comes to building something ourselves?

Continue reading

Plans For Membership Content (OOP, WordPress, and More)

Earlier this week, Tony Crockford sent the following tweet about the whole membership site thing:

Given that this is new territory and that it’s something I know requires a bit of decision-making when trying to determine if it’s worth the money, I thought it at least worth sharing some of the topics that are in the process of being drafted.

Continue reading

Adding WordPress Modal Dialogs (With Built in Libraries)

Whenever it comes to developing solutions for clients, there are going to be times when you’re likely tasked with displaying information in WordPress modal dialogs.

There are a lot of solutions available for doing this and the more familiar you are with JavaScript, various libraries, and the libraries that they have available, the harder (or maybe it’s even easier) it is to choose which one to use.

But WordPress has infrastructure built-in that makes it trivial to incorporate functionality into WordPress. So in three upcoming posts, I’ll cover the following:

  1. How to incorporate WordPress modal dialogs using built-in libraries,
  2. Populating the modal dialogs with data,
  3. Populating the modal dialog with dynamic data via Ajax.

Because of the nature of the series, the posts won’t be back-to-back, but they’ll all use a unique tag that you can use to bookmark and refer to as a series once the posts are complete.

With that said, let’s talk about easily incorporating WordPress modal dialogs with built-in libraries.

Continue reading

Adding Custom WordPress Image Attributes

When it comes to working with the_content, it’s straightforward.

  1. Set up a filter that’s hooked into the_content,
  2. define a function that accepts the incoming post content,
  3. make your changes,
  4. return the modified content.

And most of the time, this is all that’s needed. But there are times in which you may want to do more advanced things.

For example, perhaps you’ll want to include content from an external template. Or maybe you’ll want to add attributes to images that you find in the post.

Continue reading

Monthly Memberships Now Available

One of the things that I’ve wanted to introduce on this site for a long time now is a members-only section.

I’ve shared a bit about it before, but I’m excited to announce that it’s officially live, accepting registrations finally, and ready for members.

Monthly Memberships Now Available

But before you sign up or poke around at the various pages about it, I thought it would be helpful to break everything down for those who are interested.

Because not only are memberships being offered, but other changes that affect others are, too.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑