Month: January 2019
-
When to use isset(), empty(), and is_null() in PHP
Since PHP is a dynamic language, you should check that a variable exists before attempting to use it in your code. Let’s look at the difference between isset(), empty(), and is_null() to do just that.
-
Fix Missing Leading Zeroes in WordPress Zip Codes
Recently, I helped a client import a large set of addresses into a location plugin for WordPress. The import mainly went smoothly, but we noticed some issues when searching in areas with zip codes leading with one or two zeroes. The addresses weren’t coming up as they should. After examining some of the imported addresses,…
-
david v3.1.0
I’m happy to announce the release of david v3.1.0! As with any minor version update, some new, backwards-compatible features have been included since the last minor release. Among these are: A post-per-day challenge in May of 2018. Completed, but barely. The commencement of a new challenge to share more tips and tutorials this year. Becoming…
-
Where Have I Been?!?
I know that I made a commitment earlier this year to post code tips and resources most weekdays. I kind of indicated it there, but will make more clear that I intend to follow that commitment as best as I can, but know that some weeks I will just plain fall short. This week and…
-
Setting up a Custom Palette in Gutenberg
When using the new Gutenberg editor in WordPress, you can set a custom palette, or allow users to customize it to fit their needs.
-
Powering Up Homebrew on Mac with Alfred
I use Alfred App and Homebrew for OSX to make finding, installing, and updating all of my applications easy!
-
Fixing Style Issues While Editing Beaver Builder
If you write CSS that affects Beaver Builder modules, you may accidentally make changes to the page editor as well. Here’s a way to fix that.
-
Display a Notice for New WordPress Posts
If you want to signal when an article or custom post type is less than two weeks old, this PHP function can help.
-
How to Keep Gravity Forms Displayed After Submission
Keep your Gravity Form displayed after a user submits it, while showing the confirmation that the form successfully submit.
-
How to Display Links in Print Mode on Your Website
How to make print styles with CSS media queries to include a URL to a link in your site content when printed.
-
2019 Blog Focus – Sharing Tips and Resources
My personal blogging goal for 2019, and an accountability group that I’m starting to help myself and others reach our goals