Adding a ‘featured’ filter to WooCommerce products screen
As usual add this code to your functions.php
Filtering only featured products comes in handy in several scenarios especially reordering them
As usual add this code to your functions.php
Filtering only featured products comes in handy in several scenarios especially reordering them
Protip: 💡You can use | pipes to preview multiple fonts at once. Backstory: There I was trying to choose a font that I can use as a logotype out of a few candidates I noticed Google fonts has no option to “select” some fonts so that I can view them all at once. So intuitively…
Why debug.log Files Matter Performance impact: Large log files can eat up disk space and slow down file operations. Backup bloat: If your backups include debug.log, they can become unnecessarily large. Security risk: Debug logs may contain sensitive paths, plugin names, or even database queries. If exposed publicly, attackers could use this information. Maintenance signal:…
We wanted to display product variations as selectable boxes rather than dropdown / select. So we needed to use a modified variable.php to modify the variations form accordingly under: /public_html/wp-content/themes/child-theme/woocommerce/single-product/add-to-cart/variable.php We thought a WC template file under child theme would work for sure in terms of hierarchy it should override wc default and the parent…
As usual add it to your functions.php and adjust as needed
Here is the script its pretty self-explanatory on its own. Will expand on it later
We added a loop grid and a taxonomy filter for our products but when clicked on any filter – product tag in our case – there was no results. Query monitor gave the error : Unknown column ‘t.term_order’ in ‘order clause’ But the default wp _terms table did not have a term_order column anyway. So…