Answer the question
In order to leave comments, you need to log in
How to make a countdown timer in Wordpress?
Good afternoon everyone!
How can I make a countdown timer? For example, the time until the end of any promotion, or discounts on goods, etc.
Without a plugin.
And with the ability to set the start and end time in the admin
panel, as I understand it, you can use the jquery datepicker in the admin panel? or not, correct, or throw material for thought
Answer the question
In order to leave comments, you need to log in
It's simple, you take https://github.com/hilios/jQuery.countdown and pass the date and time to it using ACF.
If the site works in many regions, then https://momentjs.com/ must be set additionally for time zones
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question