If you're working with WordPress Multisite, you might encounter a scenario where you want all uploaded media to share the same folder. In my …
WordPress Multisite Domain Issues? You Might Be Forgetting to Call restore_current_blog
Recently, I created a WordPress Multisite installation on Amazon AWS Lightsail. I had this bizarre issue where my child sites were working, …
How to Remove Duplicate Items From an Array in JavaScript (the Easy Way)
Languages such as PHP have methods for de-duplicating arrays, but Javascript strangely does not. In PHP, you can write. array_uniqueAnd this …
Creating a Custom WordPress REST API Endpoint That Can Accept Spaces
The WordPress REST API is one of my favourite features in WordPress. The ability to create custom endpoints for getting data and other …
Don’t Back Projects on Kickstarter Until Supply Chains Are Fixed
The world might be attempting to get back to normal under the "new normal" label, but supply chains are still absolutely busted. As we head …
Querying WordPress Multisite Sites With Meta Queries
WordPress documentation is usually robust. However, recently I had a use case where I needed to query sites by custom meta values. In …
Get Advanced Custom Field Options by Site ID in WordPress Multisite
Out of the box, Advanced Custom Fields offers immense power but provides no functions to work with WordPress Multisite sites. Fortunately, …
The Most Efficient Way to Bulk Delete Things in WordPress
What is the most efficient way to delete thousands of posts, custom post types, media attachments and other things in WordPress? The answer …
My Experience Writing a Long-Running PHP Script to Parse News Content From the Associated Press News API
Filed under: super-specific use case with hints of generality for those wanting to write long-running PHP scripts. For a little while …