Monthly Archives: July 2025

How We Fixed WordPress’ Missed-Schedule Post (by Refactoring a Large WordPress Site)

The skinny: We fixed missed-schedule posts by reducing the site’s code landscape, examining the hosting environment, and implemented a three-prong, bulletproof approach to ensuring posts publish on time. In the process we also trimmed megabytes of render-blocking CSS and JavaScript, changing the site’s performance measured by Google Lighthouse from 17 to 75. So, that’s nice….

SOLVED: WordPress Ajax JSON error: Invalid argument supplied for foreach()

So, you’re doing some WordPress AJAX. And maybe you’re serializing your form data into an array of objects. JSON.stringify() and fire that into wp-ajax.php. And maybe you console.log‘d it to verify it’s an array of objects… Cool. Maybe it looked like this (i.e. an array of objects): But then in functions.php, you json_decode() your lovely…