Category / Notes

Occasionally, I’ll get questions via Twitter or email from those who are working with the Settings API and aren’t sure why certain values are saving when they shouldn’t actually be saving. For example, say you have an input field that’s asking for, say, a company’s name. You obviously want to sanitize the data to make […]

Yesterday, I talked about some of the advantages of using IDs when working with various pieces of WordPress data and populating different input elements, saving it to the database, and more. For certain types of data, this works well; however, this may not always be true especially as it relates to data types such as […]

One of the features that I’ve often found myself having to implement when building custom solutions for others is implementing some type of select box – be it multi-select or single select – or another similar input element that’s [naturally] populated with a list of option elements. These options may consist of posts, pages, custom […]

When working on WordPress projects, there may be times during which you have to do some sort of processing on the content or attributes of the post before saving it to the database. There are a number of ways to do this, but one of the most straightforward ways to go about it is to setup […]

There are a number of ways that we debug our WordPress-based projects. Some people end up going through the code and setting up print_r statements or var_dump statements Some end up working through the code and changing variables or function names until they find where something breaks (or changes) Some use debugging software (or the […]

A couple of weeks ago, I shared a quick tip on working with multiple InfoWindows with the Google Maps API specifically within the context of WordPress. When working with this API, there are a number of considerations to take into account each of which is going to depend on how much of the API you’re […]

Recently, I’ve been working with the Google Maps API in order to plot locations that are stored as custom post type meta data in the WordPress database.   The general functionality is as follows: For each of the locations stored in the database Generate a pin for the location In addition to creating a pin, create […]

Let’s say you’re in the process of building some type of search mechanism using WP_Query and you want your users to be able to run the search using part of a string. That is, let’s say that you’re searching Companies (which is a custom post type) and some of the company’s names is “Awesome Code.” The user […]

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 […]

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 […]

Hosted By

Hosted By SiteGround