In this guide, we will explore how to dynamically replace the block template in WordPress based on certain conditions. Our goal is to allow users to create and select custom block templates through the WordPress Editor and dynamically apply them based on specific query variables. Let’s dive into the details! 1. Create a Template Through…
Many times I have been tasked to build two websites for a business. As a developer it is my responsibility to advise how these two websites should interact, or if they should interact at all. This can be very difficult for the developer, and can be very expensive for the client. In this post I…
If you are working with a custom post type that has many fields you might want to let users filter by those fields. This filtering can be very powerful. With the limitations of a MySQL and more specifically, WordPress’s metadata tables, filtering by custom fields can become slow. This post describes one such scenario, and…
Learn how to add an option to WooCommerce which lets you define products that are already boxed and should not be combined with other packages. These products will have shipping priced for their actual dimensions, not the dimensions of the best-fitting box.
This article explains how to remove the multisite options from your WordPress website, reverting it to a standalone single-site install.
This tutorial will provide some code and explanation on how you can automate Google’s GoeCoding API to get the latitude and longitude of addresses in bulk. This is useful if you recently imported a lot of addresses and need to search by distance based on latitude/longitude.