Requires php ^7.3 || ^8 -> your PHP version (7.2.33) does not satisfy that requirement. I ran into this issue today after updating some composer packages and deploying the new codebase. Since the server runs composer on PHP 7.2 by default, it refused to complete the deployment. The fix is easy, you can force deployer […]
Get all DNS record/hosts from a domain
Transferring DNS is always a hassle. You want to make sure you copy all the records correctly to avoid any downtime when changing nameservers. But, are all hosts public? We’ll find out below. Cloudflare automatically imports records Most of you have seen how Cloudflare imports DNS records. The interesting thing is, they don’t really request […]
Shared media library in WordPress Multisite
Honestly, whenever possible – I avoid the need to share media between sites but.. in this case a lot of the same media exists on multiple sites. And the hosting we’re eyeing on charges per 5GB. With a 12GB media library we want to optimise this in whatever ways possible. Soo.. Let’s have a look […]
Post Type missing in WP_Query or get_posts (Polylang?)
When querying multiple post_types via get_posts, there was one specific post type that didn’t show up in combination with posts or pages. Querying only that specific post type worked fine, but the combination failed, every – single – time. After running the same arguments in a WP_Query and checking out the SQL that it used […]
Overriding the Gravity Forms submit button
I recently setup a Gravity Forms form that generates a zip download on submission. Whenever someone hits ‘submit’, a ZIP is generated based on user values. This works by hooking into gform_confirmation and returning a header(‘content-disposition: attachment; filename=file.zip’);. The entry is created, the zip download starts but.. the form becomes unusable afterwards. You cannot generate […]
Auto reload a python script on file change using nodemon
I’m working on a Discord bot with a friend of mine which runs on Python. I’m quite unfamiliar with the language but it bothered me that each time I make a change in code, I need to to restart the bot completely. I did some research and it didn’t seem like there were a lot […]
Creating a WordPress Sandbox environment that resets hourly with Cloudways
I’ve had multiple occasions where I just wanted to try something on a clean install in WordPress. Today we’re setting this up in Cloudways. Don’t have a server running yet? Click here to get started: https://www.cloudways.com/en/?id=713055 (yup, that’s an affiliate link) My requirements An environment that resets itself every hour The database is reset, as […]
Page templates not appearing in your Genesis child theme?
I just spend 15 minutes researching why my custom page template wouldn’t appear in page attributes. Everything was set correctly.. except for one thing. I hope you land here if you experience this issue, and I also hope that your child theme doesn’t contain an index.php file, because this is the fix. Make sure your […]
WordPress Cronjobs in Multisite
It’s always better to add a cronjob for running WordPress’ cronjobs. If you don’t, you’re dependent on website visits to launch cronjobs. Luckily we have wp-cli for that, the wp cron event run –due-now command will process any cronjobs in queue. If you add this to your crontab, you’re all set. Except for multisite Each […]
- « Previous Page
- 1
- …
- 8
- 9
- 10
- 11
- 12
- Next Page »