FacetWP pagination
prevent self linking add href
prevent self linking add href
Sometimes the debugging of the WooCommerce checkout page stresses you out and you need data: (this might help)
This uses the –prompt to avoid using the password on the command line. Download the files Create wp-config.php with the right settings. Initiate the database with the right settings. removing a line from the command line history
If you have the woocommerce object, it is easy to get the cart. If you have the cart, it is easy te get the product info. Here is how:
If your would like one added (and removed) cross (or up) sell product in WooCommerce to automatically ad the ‘current’ product as an up- or cross sell to the connected code. The following code will inspire you:
To adjust the WordPress query to only retrieve posts not older then 2 months use the following query:
To translate strings in wordpress javascript files you need 3 things: Your javascript file with translatable string A json file with the translations a php file that loads the javascript an connects the translation The javascript The javascript could look like this To translate the javascript Load it in php
Using valet has been a joy for years, but my custom local valet driver stopped working after updating to the latest valet (4.1) version due to a different driver folder and the use of namespace (fully php 8 mode). So I updated my local driver for WordPress projects where I hold the WordPress files in […]