Development
Show Random WooCommerce Products from a Category
A custom WooCommerce extension script, called via a shortcode, to show a list of random products from a category. This script was actually created for a client who uses the Avada theme. The Avada theme overrides most of the WooCommerce product display shortcodes with their own library so it makes certain parameters unavailable. This script…
Read MoreBest practices for adding jQuery or Javascript to WordPress
How to make sure your jQuery code is compatible with WordPress, theme’s and other plugins. WordPress installations these days are loaded with many plugins. To make sure that your custom plugin, that contains jQuery/Javascript, does not break other plugins it is important to wrap your code in their own private containers. Page functionality can break…
Read MoreHow to add shortcodes dynamically to a WordPress Post or Page
Here is a code example of how to add shortcodes dynamically to a WordPress Post or Page. Why do you want to do this? It happened that I had a request from a client to only show an introduction part of the description section and hide the rest with a “read more” feature. I found…
Read MoreHow to add extra features or content into Page Builders.
Add extra features or extra content to a page builder if that page builder “module” does not have that functionality you are looking for by the means of code via the WordPress’s shortcode API. Page builders are not my preferred tool and I would rather code templates than use a page builder. For the novice…
Read MoreShow Random WooCommerce Products from a Category
A custom WooCommerce extension script, called via a shortcode, to show a list of random products from a category. This script was actually created for a client who uses the Avada theme. The Avada theme overrides most of the WooCommerce product display shortcodes with their own library so it makes certain parameters unavailable. This script…
Read MoreSpeed up WP_Query requests to only return what is needed from the database
Here is a nice tip when you would like to speed up your database query for a given page. When you make a query for certain specific data in WordPress, WordPress by default will return ALL the data in an object. 95% of the time it is not required to return all the data from…
Read MoreWhy WordPress custom development take up to 10 times longer.
On the odd occasion, we get customers who supply us with a budget and deadline for a project upfront. “This can’t take more than 1 or 2 hours and it should not cost so much”. If only some problems would take 1 to 2 hours… WordPress is developed and design to provide a great User…
Read MoreGoogle Calendar API – add more fields
The other day I was busy integrating the Google Calendar API for a events website and after working with the API you begin to realise how limited your are with the fields the Google Calendar API makes available to you. It only returns limited fields that is available for a event. In the article I am going…
Read More