Tom McFarlin

Software Engineering in WordPress, PHP, and Backend Development

Page 121 of 427

Find The Difference in Dates Using PHP (and WordPress)

Working with dates in PHP is one of those things that you either have a good handle on, you’re working on understanding, or you’re stuck in the rabbit hole of the documentation that’s in the manual.

Difference in Dates Using PHP: The PHP Manual

If you’re working with WordPress, though, the chance that you’re going to need to work with dates is quite high. Nearly everything that we publish has at least one date associated with it.

This includes post, pages, custom post types, revisions, drafts, and so on.

Furthermore, there’s a chance that custom work that you need to develop with require that you find the difference in two dates using PHP. And though there are multiple ways of doing this, there’s a process that I’ve been following for something.

Continue reading

Insights for WordPress Themes by Freemius

Some time ago, I wrote about Freemius when the product was first introduced into the WordPress economy. Since then, I’ve had the pleasure of talking with Vova Feldman – the CEO of Freemius – and even crossing paths with him at WordCamp US.

Vova Feldman, Carl Alexander, and Myself at WordCamp US

Vova Feldman, Carl Alexander, and Myself at WordCamp US

Since my initial post, Freemius has released a couple of products and just released a new product (for which WP Tavern has some coverage about it already).

Given my respect for them, and what they are doing in the WordPress economy for both plugin authors and theme developers, I wanted to share some in-depth information regarding their latest work project.

Insights for WordPress Themes

Thanks to some information and exchange with Vova, I’m happy to share some, ahem, insights on their latest product: Freemius Insights for WordPress Themes.

Continue reading

Programmatically Create Recurring Events with Event Calendar

Modern Tribe’s Event Calendar is likely the most popular calendar plugin available for WordPress. I’ve talked about querying events using WP_Query in a previous post but that’s applicable to both the free and premium versions.

Programmatically Create Recurring Events with Event Calendar Pro

The premium version offers a lot of great features, but if you’re looking to programmatically manipulate the calendar, it’s a little more difficult to work with it.

  • there isn’t clear documentation on how to take advantage of certain features from a developer’s perspective
  • the places where people have asked how to do so occasionally leave something to be desired.

Case in point: When we need to programmatically create recurring events.

Continue reading

Scheduling Time (With “Less, but Better”)

This weekend, I was talking with a friend who runs their own small business, and we spent some time on the topic of scheduling time and how much of our time we spend on different tasks each week.

Scheduling Time

Of course, this isn’t unique to a few group of people. I mean, we all have the same amount of time, and we’re all spending it on something. When we’re trying to be productive, it’s often a matter of:

  • how much time are we spending on something,
  • and where are we spending it?

I mention this because we’ve all felt that bit of frustration, right? We’re trying to get something done but we get interrupted, and either can’t find the groove to get back into it, or we can’t finish what we set out to do by the end of the workday (or whatever deadline we’d set).

Whatever the case, we all have our things – those we want to do, those we don’t particularly want to do, those that prevent us from doing either, and those that are likely a waste of time.

And this year is one of those where I’m trying to be far more intentional and make a more concentrated effort on how I’m organizing spending my time.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑