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.
In this post I will focus on how to consume and organize the results of the array that we get back from a previous post, where we got all the meta_data for ALL the posts. It’s a simple step, but it will complete the goal to categorize all our meta-data and display on one page.
Once in a while you find a convenience function that you never really knew before. It’s a method that seems to save a few lines of code or gets rid of some monotonous boilerplate code that you use over and over. Well, wp_list_pluck is one of those functions. But what does it do? how does it […]
So recently when doing an update to a client’s site, I noticed some strange at the top of php file. Uh-oh, I’d seen this before and knew what that meant. The site was hacked. Expecting the worst, I logged into my site and started to identify, search, and destroy this code. Since the steps to do […]
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 […]
Coming from a C# background, moving from an elegant strongly-typed powerful language like C# to a mish-mash feels-like-its-cobbled-together language like PHP was both frustrating and liberating. And the hardest part wasn’t even the syntax. It was tools.
If you’re using custom fields on a custom post type in WordPress. How do you show ALL instances of that custom field for multiple items? How about showing the custom field for ALL the items? There are two ways to do this.