I have been using this plugin for a log time and I’ve just realized it’s causing massive issues with my site because of the fairly complex code I am using. My use case is to display the time at which the delivery window for next day delivery of a product closes. This is in a WP block which appears on lots of product pages. The problem is that when the order window closes (at 11:00am), instead of moving on to the next period, every page that is open on any user’s desktop which includes this code starts to refresh about once a second, immediately robbing my server of resources and effectively becoming a denial of service attack. I am sure this can be resolved by better code, but I need help figuring out how to resolve this.
Here is my code:
[countdown date=2022/01/03-00:00:00//2022/01/03-11:00:00//2022/01/04-00:00:00//2022/01/04-11:00:00//2022/01/05-00:00:00//2022/01/05-11:00:00//2022/01/06-00:00:00//2022/01/06-11:00:00//2022/01/07-00:00:00//2022/01/07-11:00:00//2022/01/07-11:00:00 period=7]
Orders for <b>Monday & Tuesday</b>: <font color="red"><b>CLOSED</b></font> <br>Orders for <b>Wednesday+</b>: <font color="green"><b>OPEN</b></font> (closing at <b>11:00am on Monday</b>)[after]
Orders for <b>Tuesday</b>: <font color="red"><b>CLOSED</b></font>, orders for <b>Wednesday+</b>: <font color="green"><b>OPEN</b></font>, closing in <b>[dhmtimer]</b> (11:00am)[after]
Orders for <b>Tuesday & Wednesday</b>: <font color="red"><b>CLOSED</b></font> <br>Orders for <b>Thursday+</b>: <font color="green"><b>OPEN</b></font> (closing at <b>11:00am tomorrow</b>)[after]
Orders for <b>Wednesday</b>: <font color="red"><b>CLOSED</b></font>, orders for <b>Thursday+</b>: <font color="green"><b>OPEN</b></font>, closing in <b>[dhmtimer]</b> (11:00am)[after]
Orders for <b>Wednesday & Thursday</b>: <font color="red"><b>CLOSED</b></font> <br>Orders for <b>Friday+</b>:<font color="green"><b>OPEN</b></font> (closing at <b>11:00am tomorrow</b>)[after]
Orders for <b>Thursday</b>: <font color="red"><b>CLOSED</b></font>, orders for <b>Friday</b>: <font color="green"><b>OPEN</b></font>, closing in <b>[dhmtimer]</b> (11:00am)[after]
Orders for <b>Thursday & Friday</b>: <font color="red"><b>CLOSED</b></font> <br>Orders for <b>Monday+</b>: <font color="green"><b>OPEN</b></font> (closing at <b>2:00pm on Friday</b>)[after]
Orders for <b>Friday</b>: <font color="red"><b>CLOSED</b></font>, orders for <b>Monday+</b>: <font color="green"><b>OPEN</b></font>, closing in <b>[dhmtimer]</b> (11:00am)[after]
Orders for <b>Friday</b>: <font color="red"><b>CLOSED</b></font> <br>Orders for <b>Monday+</b>: <font color="green"><b>OPEN</b></font> (closing at <b>11:00am tomorrow</b>)[after]
Orders for <b>Monday+ </b>: <font color="green"><b>OPEN</b></font>, closing in <b>[dhmtimer]</b> (11:00am)<br>[after]
Orders for <b>Monday</b>: <font color="red"><b>CLOSED</b></font> <br>Orders for <b>Tuesday+</b>: <font color="green"><b>OPEN</b></font> (closing closing in <b>[dhmtimer]</b> (11:00am today)
[/countdown]
I have resolved this temporarily by un-ticking the “Add JavaScript code” but being able to show the minutes and seconds counting down was a useful feature.
Your assistance would be greatly appreciated.
]]>Currently on our woocommerce site we have used the “woocommerce_proceed_to_checkout” hook to display message to customers using the action..
add_action( 'woocommerce_proceed_to_checkout', 'order_notice_for_shipping' );
function order_notice_for_shipping() {
echo '<p class="shipping-info-text">You have until 2pm Central to place your order for same day shipping.</p>';
}
Now this is static, and what I really want is for it to say “You have 4 hours 41 minutes 32 seconds to place your order with same day shipping.</p>’; }
How do I combine these to work together to accomplish this?
]]>Hello,
This plugin is crashing our VPS when the timer is expired (we use the countdown shortcode), the page keep reloading 10 times per seconds.
Please advise how to fix that issue, I’ve seen that at least 2 other people are facing this issue as well !
Thanks.
Droudep.
]]>Hi,
I can’t find a solution in documentation for display weeks in [timer]. Is there any way to do so?
Thanks!
]]>Hello,
I’m wondering if there exists a way to update the date value the counter uses with an input field?
For example, instead of having the shortcode as such:
[countup date=2018/05/23][dtimer][/countup]
I would like to have something like this:
[countup date=”default”][dtimer][/countup]
Where default date is updated at the plugins admin page. Is this function possible/is it possible to create this functionality in the plugin?
Thanks for a great plugin and your support.
]]>Hi!
I trying to create post carousel with countdown for each post and load it with AJAX Load more plugin. But if i load post ajax the countdown show time but it does not changes.
My code for call the countdown:
<?php echo do_shortcode('[countdown date=+'.$value.']'."Ends in".'[timer]'.'[/countdown]') ?>
Where $value2 is the specific value for each post getting from post custom field.
This code absolutely works if run the standart post cycle using only php not ajax.
How i can run timer in AJAX?
]]>Hi there. I have activated this plugin and everything was working as expected but the next day when I returned to continue my work on the page I noticed that the seconds on the counter are no longer counting up on the page. I assumed there was some sort of plugin conflict and tested the plugin on another website – it worked great so I continued trying to find the issue on the initial website. Fast forward to today, I checked the second testing website and the seconds have stopped counting there as well.
I have tried deactivating and even deleting and reinstalling the plugin but nothing seems to resolve the issue.
Any help would be appreciated.
Thanks,
Sara
Is there a chance that this plugin will be made php7 compatible? If not I need to look for another plugin.
]]>I am trying to have a shortcode that ONLY shows elapsed years since 2005/01/03.
I don’t need days, hours or seconds.
I just want a way to not have to keep updating how long I’ve been in business on multiple websites.
Total context is:
“After 13+ years in business….”
I tried many variations and nothing worked.
Thanks,
Karissa
Hi there, does anyone know if this plugin works with PHP 7? Thanks.
]]>Hi,
Is there a way for it to repeat every 1st day of the month?
Thanks
]]>Hi everyone!
Is the plugin going to be available in Finnish any time soon? Thanks!
great plugin there!
i just wanna know how to get rid of the BR code it insert in the very first line.
i’d like to have no space between the countdown and the text line above it.
thanks!
]]>I would like to only display the number and not the units that follow. Is there a way to hide the units so “43 Seconds” becomes “43”?
I found some strings in the “timer-string.php” file that listed the “Days” “Hours” “Minutes” and “Seconds”, so I deleted them in an effort to only display the number. But the countdown timers continue to show the words with the numbers. One of your posts mentioned updating the “easy-timer.js” file too, but I am at a loss for how to update.
Any quick ideas on what I need to edit?
Thanks for the great plug-in. I really appreciate the features and how well they work.
]]>I would like to input date in different format:
date/month/year = [countdown date=DD/MM/YYYY]
Is this possible?
]]>I have just created a new page on my site that uses a table created in TablePress. You can see the page at https://appletechtalk.com/buyers-guide/.
I am using one of the cells in the table to embed the Eay Timer code to count up from the date in the Last Updated field. My code for the first entry looks like this:
[countup date=2015/10/13][timer][/countup]
The count is correct but it does not appear that the count is increasing on its own. I created the table yesterday and the count was 375. This morning, the count was still 375. If I go in and make a change or resave the table, the count gets corrected but it does not appear to be changing on its own.
Am I using the correct code? Is there an issue putting this code into a table cell?
Would appreciate your thoughts.
Regards,
David
]]>Hello,
is it possible to count up from post date ?
thanks!
]]>Hi!
Right now I have a countdown like “2 days 9 hours 41 minutes 32 seconds” How can I change the text for example “hours” like “h” minutes “m” seconds “s” ?
Thank you so much in advance.
Marco
]]>Hi,
easy timer is great, I just was wondering if it is possible to display numbers on two digits ? for example ’03 seconds’ instead of ‘3 seconds’.
Thanks
I set up this timer so when it finishes it’s count down it gives a different msg saying its over. That msg in all that is being displayed even though the count down isn’t finished. It was working up till this latest version of WP. I have tried turning the plugin off then on again.
Any help would be great to get this plugin working again.
]]>Hi,
The plugin is doing exactly what i want, so that’s great.
However i’m having a problem with the styling, it is generating way too many <br>
‘s and <p>
‘s.
So if I want to show the countdown of 3 different dates in a list there are too many empty lines in the output. Especially if I also use the [after]
option.
Is there a way to control this?
Thanks.
I’m curious if this plugin can be set to count down from a stores opening hours, for example:
open 12:00pm to 3:00am everyday…
Is this achievable?
]]>Having a weird bug with this plugin. It works fine as a shortcode on a page, but when we add it as a shortcode within a post type from the “WP Notification Bars” plugin, it doesn’t work. Note that this plugin explicitly says it allows shortcodes.
The error I am getting is that “string0day” is not defined. It’s on line 12 of easy-timer.js:
var stringD = string0day;
Looking through that file, I dont see any declaration of string0day.
Both of the pages are loading the easy-timer.js file, and I dont see any files from the plugin that are missing.
Any ideas…?
]]>Hello,
I have a timers that only show on the back end of WP. When logged out I cannot see them.
See pages:
https://www.smartfertilitychoices.com/pcosdietchallenge/
https://www.smartfertilitychoices.com/pcosdietchallenge/introduction-to-the-challenge/
https://www.smartfertilitychoices.com/pcosdietchallenge/lesson-1-sugar-high-gi-carbs/
I have many more but they are not available yet.
Can you please assist?
Thanks
]]>Hi,
I love the plugin, but one essential part is failing so far.
Once my countdown runs out, it does not show me whatever i placed right of[after]. It actually tries to refresh the site. it’s loading and loading for ages (30seconds) and then finally tells me the content of [after]… any idea?
I want to show 240 seconds countdown and want it to repeat with every page reload … is that possible ?
Cause I just want to show a timer after which it will redirect to another url.. I already set the url redirect…
I just need to show the timer of 240 seconds for each visitor as a time warning for login or register so that they signup of login before 240 seconds or redirect to another url
]]>I once used Easy Timer with no issues. Today I updated WordPress to version 4.4, then I put up a timer, and it won’t display, using this shortcode in a post:
[countdown date=2015/12/08-05:00:00]
[elapsed-timer]
[/countdown]
I’ve also tried using [elapsed-dhmstimer]
and [timer]
.
Hi
Thanks for a great plugin. We are trying to use this on a digital signage setup and then the clock shortcode display the time of the actual device showing the site.
Is there a way to rather show the actual time of the server instead of the client device?
Appreciate your help!
]]>Just wondering if this plugin can display years?
]]>Hi, I just started digging into this plugin, but can’t find the following option in the instructions:
I would like the timer to start on site entry (You clearly described this option, even with an example) and to stop when the visitor has completed a sudden question on the site (I ure WP-trigger).
To make myself more clear: Is it possible to show the total time that a user has been on the site and to stop the timer at a sudden location on the site (showing the total time on site, but stopping the clock right there, allowing users to compare the time they needed on the site?).
Really curious if it is possible to get this working!
]]>