The following docker-compose.yml file setups a local WordPress docker instance alongside a MySql server and an Adminer web app which can be used as an alternative to PhpMyAdmin. version: '3.9' services: wp_mysql: image: mysql:latest container_name: wp_mysql command: mysqld --character-set...
How to let Avada Post Cards element fetch posts from the database based on a value of a custom field in the posts
Context In the last couple of months, I have been working on the website of Stichting Civic. Stichting Civic is a Dutch foundation committed to improving the Dutch civic integration policy for refugees and other newcomers. The foundation aims at 1) collecting and stimulating socio-scientific and...
How to change the prefix of WordPress database tables using MySql in phpMyAdmin
In this article you will learn how to change the name of all MySql (WordPress) database tables in one shot to save you time and maybe money too :)
How to trigger a specific code after a new product is created via WooCommerce REST API
I ran yesterday into a situation where I needed WordPress to perform a specific action after a product is inserted into WooCommerce database using the REST API endpoint POST /wp-json/wc/v3/products I have searched online for a couple of hours and I found multiple solutions, but non of them worked...
How to reduce the size of wp_icl_strings table in my wordpress database
Just like a lot of WordPress users, I use for a client WPML to make the website multilingual. The plugin is a magical plugin, and it enables you to translate everything on your website. To make the translation process more easier for the user, WPML just tracks down every single added string to the...
How to perform SQL queries with WooCommerce?
This post will be updated regularly. This is a work in progress 🙂 DISCLAIMER: Maybe the title is a bit misleading, but this blog post is meant to be as a reference for people just like me who are forced to google everytime how to get a or to manipulate product, product category and all other stuff...
How to solve “http doesn’t redirect to https”
This website is running on VPS from Linode.com . I have configured every single detail about the site, and as you have noticed that the website has only one version with https. I have only peshmerge.io (non-www) version. This morning I have clicked on the link of my website on my twitter profile...
How to solve the problem of missing Captcha in GravityForms when cache is on
Sometimes this problems happens when you have enabled a caching pulgin (W3 total cache or WP fastest Cache etc ) in wordpress which leads to incorrect functionality of javascript and css files responsible for generating the captcha. The solution for this problem is simple. What you have to do is to...