Skip to content
Advertisement

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 customer enters “/” charachter in the

wordpress redirect users to the same URL they request appending parameters according to role

I am working on a Wordpress website with multiple roles. My target is to redirect user with a specific role when they request pages like orders in the admin area to go to a filtered URL having their id. example: User requests: www.site.com/wp-admin/edit.php?post_type=shop_order This Applies only to the role “tester” My Approach was: Rewriting the code now gave me error,

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 products. I want each

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

Advertisement