Skip to content

Tag: wordpress

Show JS alert on a form php

I have the following php code, which is a wordpress hook to display an address autocomplete form on my website’s cart page. The function was written in functions.php file. I dont want the customer’s to enter their unit numbers or house numbers. As such, I want to display a simple js alert if a cus…

Countdown For WooCommerce Products

I create function to get the date and turn it to countdown. This my function code: And this my javascript code which is in “countdown.js” file: This code works on single product page, but when I try this in the product archive, it only works on the first product and does not work on the rest produ…

Add custom taxonomy to my custom posts type wordpress

I’ve been trying to add a custom posts type to my wordpress page but its not showing up. What am I doing wrong? It feels like its only a small thing but I’m not seeing it as I me fairly new to the custom posts type’s. What I want is to create pages for the teams at our company where