It’s always good to give your user a summary of what they’re going to upload, before it’s actually uploaded. I’ll keep this one short, we’re using a file input to allow the user to upload a file. And whenever the element changes, we’ll use javascript to get some information, in this case, the duration of […]
Re-order options in a select element
While working on a feature that allows users to move options from one select element to another I ran into an issue with alphabetic order. Especially when multiple options are being moved at once. To easily solve this I wrote a re-order function that orders both select elements at once. The code’s hosted on Github […]
Displaying a different value for a field in a Gravity Forms entry
We’re selling tickets via Gravity Forms for one of the websites I manage. Events are managed via another plugin and whenever a purchase is made, the event ID is saved in the form entry. Of course, we can’t just display the ID in the backend. We want to see the name of the event, and […]
Adding and using WP-CLI in a docker-compose setup
For most of my WordPress projects I use my own Alcedo WordPress workflow. With some extra scripts, creating a new site is as easy as running ‘create site.c7’in the terminal. This sets up a full WordPress install with local domains and certificates. But, in this case i’m using a different setup in which I use […]
docker-compose, mysql:5.7 and configuration files.
In another blog post, I wrote about solving an issue with io_setup(). The issue was resolved by disabling native AIO in the configuration files. The database service in docker compose This is as minimalist as it gets. We’re using the mysql:5.7 image. The image automatically loads the configuration file in /etc/alternatives/my.cnf allowing us to make […]
Mysql on Docker: exited with code 0, io_setup() failed EAGAIN
I’ve encountered this several times and usually just run the quick fix: Destroy the container and restart with a new one. But, in this case, I really don’t want to go through that trouble, so let’s go ahead and fix this. What does it mean? Some quick research reveals that this has to do with […]
Export Mailgun logs using the Mailgun API
Sometimes there’s just no other way. You need to gather information about e-mails that were sent, but your application just doesn’t have the logging available. In this case, Mailgun does have the information stored that we need, but how do we extract it? Using the Mailgun API Mailgun doesn’t allow us to export logs/events using […]
Docker fails to connect with archive.ubuntu.com
Upon launching a new docker-compose setup, my Dockerfile suddenly had issues installing some packages, showing errors like: It took me some time to figure out what was happening, but this Medium post got me in the right direction. Somehow, when building, docker fails to run DNS queries. Debugging: what causes this? We can test the […]
Populating an ACF dropdown with forms from Gravity Forms
No need to explain, let’s dive into code!
- « Previous Page
- 1
- …
- 5
- 6
- 7
- 8
- 9
- …
- 12
- Next Page »