Software Engineering in WordPress, PHP, and Backend Development

Author: Tom (Page 234 of 428)

Check To See if a WordPress Post Has a Term

In yesterday’s post, I shared how to determine if a given term has a child term. The idea behind doing this is to check to see if a given WordPress term has a child and if the child is actively applied to the post (or post type) in question.

But there’s a caveat that I didn’t mention:

Just because a term has a child doesn’t mean the term itself is actually active.

This means that you could technically be getting a false positive if you’re using the previous method as your sole means to determine if a term has a child. Instead, you need to do one more thing: Check to see if the post has the term applied to it.

Continue reading

How To Check if a WordPress Term Has a Child

If you’re in the process of working with hierarchical terms, then there’s a chance that you’re eventually going to need to know if a given term is the parent to another term.

For example, let’s say that in one of your templates, you’re responsible for displaying a list of all of the terms that do not have children for one reason or another (or maybe you’re responsible for display only terms with one children or another).

Whatever the case, this is a relatively straightforward operation to do assuming that you have the term’s taxonomy readily available.

Continue reading

My Productivity and Entertainment in 2015

Every year we end up trying out new services, solutions, communities, chat rooms, groups, apps, and other forms of technology that, by the year’s end, may be contributing more noise than signal to our day-to-day.

Perhaps I’m about idealistic, but I think that the majority of us are concerned with making sure that we have the tools that we need to get our work done and nothing more, nothing less (with the occasional game or book for entertainment and/or educational purposes, of course :).

But you get the idea of what I mean: We start off with the best of intentions in getting only what we need in order to get our work done and end up with a plethora of extraneous things that we don’t necessarily need distributed across our various devices.

Then again, maybe I’m the only one who’s suffered from this. But not likely. Here’s a run down of the things that I’m looking to employ day-to-day for both productivity and entertainment.

Continue reading

My Suite of Apps: Living Earth

One of the most interested aspects of working with people all over the world – aside from the fact that, y’know, they’re all over the world – is coordinating time zones with people for phone calls.

Sure, it’s easy to coordinate one-on-one calls with people when it’s only two timezones you’re working with, but when it comes to adding three or more people to a call, things get more interesting.

Case in point: I’ve been in a number of calls where I’m chatting with people in the UK and in Australia all at the same time. That’s a pretty big shift in time zones, right? We’re about as spread out as you can get when it comes to setting up timezones.

And yeah, it’s easy to go about coordinating timezones through the use of various web sites that are out there, but there’s one app that I’ve found that I really like not only for that reason, but also for what it offers as it relates to other various information about the planet (yes, planet).

Check out Living Earth.

Continue reading

What Are You Doing Inside of WordPress?

I know – the title of this post is kinda weird, but I figured it made sense given yesterday’s topic (that is, what are you guys and girls focusing on outside of WordPress in the coming year?).

After all, just because we’re looking to focus on things outside of WordPress, that doesn’t mean that we’re going to be moving on or moving away from WordPress.

And since WordPress is comprised of so much – that is, core developers, plugin developers, theme developers, documenters, teachers, educators, event organizers, and so on – I’m interested in seeing what you’re planning to do in the coming year, as well.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑