Coming from C#, one my favorite additions to that language was null coalescing operator. I’m happy to say that PHP 7 has added this operator and it’s a great operator that can make your code more clear and purposeful. Would you like to coalesce? The word coalesce according to one dictionary is a verb that […]
Category: WordPress
How to get posts that do NOT have a custom field value
The way WordPress decided to deal with adding custom pieces of data is both cumbersome and elegant. Because it stores ALL metadata in one table, it can be painful to try to figure out what a data object looks like. Things like adding Foreign keys and enforcing certain relationships can not be done easily. Your […]
Creating Custom Category Layouts using the Divi theme
Recently, I ran into an issue where I wanted to easily define layouts for a Divi theme for different categories. Note, I don’t use Divi for this blog, but in my day job, we have a lot of Divi-based sites.
For this particular site, I wanted to allow content creators to easily customize layouts for different categories or group of categories using Divi.
Categorize meta data from a get_results call in WordPress (Part 2)
Digging into WP Core: wp_list_pluck
WordPress site hacked! How to Identify, search, and destroy malicious code
From C# to PHP and WordPress ( Part 2 : The Syntax )
PHP: Get serious? PHP is quirky. It’s that odd cousin that no one really admits to being related to (Sorry cousin Rupert). It’s also very simple. It’s interpreted, not compiled, it’s got non-serious function names like implode and as a result, some think it’s not serious. People don’t REALLY think PHP isn’t a serious language, after all it runs a LOT of […]