Countdown Timer

Latest version Released (January 24, 2019):


Compatibility (i.e. versions I test against, may work with other versions as well)

  • Requires WordPress Version: 4.0
  • Compatible up to: 5.1.9


Login to WordPress and go to Manage > Countdown Timer. To add an event to count down to, scroll down to “One Time Events” and follow the instructions.

Please check the forum for answers to questions and for further support issues:

Official Plugin Page:


Hopefully if you really like my plugins (and/or me) you might consider making a donation. I’ve been spending more and more time writing and supporting plugins. I’m a college student and really only do this programming thing on the side for the love of it.


Last updated on May 5th, 2014 at 11:16 am


747 thoughts on “Countdown Timer”

  1. Pingback:  The Rants and Raves of an Everyday Fool - just flapping my jowls?

  2. Pingback: WordPress Plugin Database

  3. Pingback: The Tryary WS

  4. Pingback: WordPress Italy Forum

  5. Pingback:  Addison Road

  6. Pingback: The Blog for DesignCreatology

  7. Pingback:  The DigitalXpert?s Blog: Geek Speak, Tech Talk, and other Intellectual Properties.

  8. Pingback:  The DigitalXpert?s Blog: Geek Speak, Tech Talk, and other Intellectual Properties.

  9. I am really liking the coutndown timer and was wondering if there was a way to throw a line break between the different countdowns?

    Thanks for sharing this plugin and for any help you might be able to offer!

  10. The countdown timer is designed to be used in a list, either ordered (<ol></ol>) or unordered (<ul></ul>). Each event in the countdown is encapsulated between a list element (<li></li>) tag. If you wanted, you could edit the script to return a line break.
    On line 301, replace

    $content = "<li><b>".($link==""?$text.":":"<a href="$link" rel="nofollow">".$text.":</a>")."</b><br />n";


    $content = "<b>".($link==""?$text.":":"<a href="$link" rel="nofollow">".$text.":</a>")."</b><br />n";

    Notice the missing <li>.

    On line 302, replace

    $content .= "<abbr title = "".date("j M Y, G:i:s", $time)."" style="cursor:pointer; border-bottom:1px black dashed">in ".cdt_hms($time_left)."</abbr></li>";


    $content .= "<abbr title = "".date("j M Y, G:i:s", $time)."" style="cursor:pointer; border-bottom:1px black dashed">in ".cdt_hms($time_left)."</abbr>";

    Again, notice the missing </li> and the end this time.

  11. Any plans on making a widget out of Countdown Timer? That is the main reason why I am not using it now.


    PS. The preview of comments that you have; is that available out-of-the-box with WP or is this plugin? I am new to WP and never seen it before. DS.

  12. There are not any plans to make a widget out of Countdown Timer. I’ll take a look at the Widget specs and see what it would take to port it over.

    The preview comments (on the homepage) is not out-of-the-box. The plugin is called “Get Recent Comments” by Krischan Jodies.

  13. Hey. There appears to be a problem with the current version. I can’t set any options – it just says “a” in each field after I click “update options”. Any suggestions?

  14. If you have access to your mySQL database, look in the “wp_options” table. Delete the two rows called “afdn_countdowntracker” and “afdn_countdownOptions” under the “options_name” column.

    That should reset everything.

  15. If you’re interested in what I did I set the time back to 2005 on one of the CD’s so it wouldn’t show something anymore and doing that made the bottom half of the admin>>manage>>CDT go black and show this error at the top.
    Warning: Invalid argument supplied for foreach() in /home/sites/ on line 91

    I can seem to get rid of the problem be re-installing the plugin I even deleted wp-events from the database.

  16. PHP 5 error in countdown timer.

    I was surprised to find the Countdown timer crash the admin and live page after install. Checked the code and fixed line 248. It read ”
    Tou only have to add php after the questionmark and everything will be fine.

    Thanx for everything,

  17. Not sure what I’m doing wrong.

    I’m running WordPress 2.0.5 with the latest version of the K2 theme. I’m trying to put a countdown timer in the sidebar.

    Everything seemed fine, but after I entered an even and date I get the following error at the top of the countdown timer management page:

    Warning: Invalid argument supplied for foreach() in /home/XXXX/public_html/wp-content/plugins/afdn_countdownTimer.php on line 91

    I went into the data base and cleared out the entry, which fixed it. But it returns if I put in a new event.

    For date I put in “April 17, 2007, 8:45am”.

  18. Hi again!
    It seems the postback IDs got wrong somehow. I got the next post emailed back to me. No big deal, just FYI. BTW, I misspelled “You”-the first word of my previous post.
    Stressfree and happy holidays,

  19. I am having the same problem as Darren (see Dec 10 2006 response). I deleted the database files and it resets, but I can’t get the plugin to function correctly. I tried not modifying the date format, to no solution. Any help?

  20. Thanks for the updated version. Works great.
    However, I have one other question. Each event seems to shown with a bullet in the countdown timer list. Is there somewhere I can turn off the bulleting or perhaps reformat it?


  21. For version 1.6.1, you’ll need to edit lines 370 through 383.

    On lines 370 and 379, you’ll need to remove the <li> from the beginning.

    On lines 372, 374, 381 and 383, you’ll need to remove the </li> from the end and replace them with <br />

    The whole section should look like this when you’re done:

    	$content = "<b>".($link==""?$text.":":"<a href=\"$link\" rel="nofollow">".$text.":</a>")."</b><br />\n";
    	if($timeFormat == "")
    		$content .= cdt_hms($time_left)." ago<br />";
    		$content .= "<abbr title = \"".date($timeFormat, $time)."\" style=\"cursor:pointer; border-bottom:1px black dashed\">".cdt_hms($time_left)." ago</abbr><br />";
    	return $content;
    	//return NULL;
    	elseif($time_left > 0){
    		$content = "<b>".($link==""?$text.":":"<a href=\"$link\" rel="nofollow">".$text.":</a>")."</b><br />\n";
    	if($timeFormat == "")
    		$content .= cdt_hms($time_left)."<br />";
    		$content .= "<abbr title = \"".date($timeFormat, $time)."\" style=\"cursor:pointer; border-bottom:1px black dashed\">in ".cdt_hms($time_left)."</abbr><br />";
  22. Pingback: Andrew Ferguson dot NET » Blog Archive » Countdown Timer v1.6.1

  23. How can I edit the plugin so that it only counts down the days? I just want it to say, “185 days until this event”. Thanks for a great plugin!

  24. You’ll want to edit the cdt_hms function that starts on line 395.

    For your purpose, you can replace the entire function with:

    function cdt_hms($s, $min=1){
    	$days=intval($s/86400); //How many days?	
    	if ($days) //If there are any days, display them
    		$r=$r.abs($days).' '.__("day").($days==1?NULL:"s").', ';
    	return $r; //...and return the result (a string)

    FYI, I hope to be able to customize this part of the plugin in a future release.

  25. Hello, I have been trying without any luck to get your timer to work on my blog. I really like it and am hoping someone can lend me a hand. I tried shooting you an email but didn’t hear back. I can get the words “Countdown Timer” to display and underneath is states “no dates present.” I have downloaded and installed the file to my plugins directory, have ensured all files have at least 755 permissions, and have activated the plugin in my admin menu. Now here is the problem. I can’t get the timer to update any events. I enter in all information as told and push the update events button and nothing, my screan clears as if I never entered anything and no data was saved.
    If data was saved where would I be able to see it, edit it, delete it?
    If data is saved correctly is there a success bar at the top of the timer plugin that states if it was correctly saved or not, because I get nothing.
    I have tried deleting, reinstalling and reactivating. Please help. I would really appreciate it. Thanks for your time.

  26. First off, you shouldn’t need to set any permissions as the plugin doesn’t modify any files (except for adding the function in your sidebar). As for not updating, that is rather curious.

    The data is saved to the mySQL database in two places in the wp_options table. The actual dates are saved with the option_name of afdn_countdowntracker while the preferences are saved with the option_name of afdn_countdownOptions. Try deleting both of those rows and that might fix the problem.

    There is no success bar at the top, but I like that idea and will try to remember to include it in the version.

    Deleting, reinstalling and reactivating won’t fix all problems because the associated mySQL rows are not deleted with the plugin is deactivated/deleted. As I mentioned before, try deleting the rows.

  27. I’m experiencing the same problem as Dobber. I deleted the two db rows you mentioned above, and they are recreated correctly when saving the options. But no countdown entries are shown and the options page doesn’t read the settings stored in the db.

    The entries in the db are as follows:



    Any solution to this?

    Many thanks

  28. General Note:

    I just added a donation button on the side bar (to the right), so if you *really* like my plugins (and/or me) you might consider making a donation. I’ve been spending more and more time writing and supporting plugins. I?m a college student (3rd year Elect. Eng.) and really only do this programming thing on the side for the love of it.

  29. Tom,

    I did some messing around and I may have tracked it down. I think the data is being double serialized and then double unserialized (don’t ask why, it shouldn’t be). Update lines 87 and 88 to:

    update_option("afdn_countdowntracker", $results); //Update the WPDB for the data
    update_option("afdn_countdownOptions", $afdnOptions);//Update the WPDB for the options

    Also update lines 91 and 92 to:

    $dates = get_option("afdn_countdowntracker"); //Get the events from the WPDB to make sure a fresh copy is being used
    $getOptions = get_option("afdn_countdownOptions");//Get the options from the WPDB to make sure a fresh copy is being used

    Also, what version of WP are you using (so I can also test against this solution)?

  30. Hi Andrew,

    works like a charm ๐Ÿ™‚
    The fix also needs to be applied to lines 299 & 300.

    Sent you an attaboy via Paypal ๐Ÿ˜‰


  31. I’m getting some foreach() errors on 2.1.2

    Warning: Invalid argument supplied for foreach() in /home/user/public_html/wp-content/plugins/countdown.php on line 100

    Any ideas?

  32. Johnathan,

    Thanks for the bug check. I don’t believe it will affect operation. The error appears to occur when you have no dates present and have turned on the option to automatically delete dates once they have occurred. Can you confirm this?

    I’ve added the bug for fixing in the next release.

  33. I’m getting this fatal error in the Countdown Timer tab under Manage:
    Fatal error: Cannot use string offset as an array in /home/…/wp-content/plugins/afdn_countdownTimer.php on line 234
    Delete Event Date Event Title Link Display “Time since”

    Haven’t messed with the plugin or anything. What’s wrong?

  34. Pingback: Countdown Timer « Extend › Plugins

  35. Hi, i installed your plugin in my blog but i do not know how to use your plugin. When i go to Manage, Countdown Timer, it will load and stop loading my admin drop down bar. And there is no way for me to save those options after i edit any of them. There is no UPDATE button or SAVE CHANGES button in my page. How do I go about now using this plugin?

    Please advice. Thanks

  36. Using WP 2.1.2 and CT 1.7. I should add that it briefly worked, and then I got that error after I deleted a countdown item using the Manage > Countdown Timer panel.

  37. William, what version of WP and Countdown Timer are you using?

    Jon, I may have a solution. If you have access to your mySQL database, go to the wp_options table and look for a row with an option_name of “afdn_countdowntracker”. Try deleting this row (your events will be lost, FYI). That should do the trick.

  38. Muh, yea…I’ll get around to it at some point.

    I’m on the tail end of Spring Break right now (pretty much my last real break for the 8 weeks), so I’m enjoying that!

  39. How do I get the two timers I have setup separate themselves into two different lines?? I am using version 1.7.1 and WP version 2.0.7?

  40. In the management page, there’s a prefix and suffix option. You’ll need to use that to prefix and suffix each event with the appropriate HTML code, such as <p> and </p> or <li> and </li>.

  41. Pingback: Bruce Family » Blog Archive » Countdown

  42. From my Inboxen™:

    I’ve been reading some great things about your countdown widget for WordPress. Unfortunately, I have incredibly basic PHP editing skills and don’t understand how to make it work on my blog. Can you tell me where I am supposed to set the count down time? I want to set the day (without minutes or seconds) to June 22nd. I have no idea where I’m supposed to plug this info in.
    So far I’ve activated both the countdown timer and the widget add on. I’ve included your suggested code in the sidebar and I get the following text: “No dates present”
    Where/how do I set the date? And how do I just make it show up as something like “94 days left”
    Any help would be great appreciated.

    Log into your WordPress Dashboard. Click on Manage, click on Countdown Timer. Scroll down to One Time Events. In the dates field, type: “22 June 2007” (without the quotes). Fill in the event title field with what text you want displayed. Click Update Events.

    Also, you don’t need to activate the widget and add the PHP code, do one or the other. If you have a theme that supports widgets, you the widget. Otherwise you’ll need to use the PHP (which you’ve already added).

    Currently, there is no support for only showing the days left. I’m working on adding this in to the next release though.

  43. I have installed as you said, but still get the “no dates present” in the sidebar. When I am in the manage > countdown timer and have put my date in, click “update”, nothing happens. Any idea what’s going on?

  44. I am having the same problems as Dotty;

    “I have installed as you said, but still get the “no dates present” in the sidebar. When I am in the manage > countdown timer and have put my date in, click “update”, nothing happens. Any idea what’s going on?”

    I have tried this from firefox and Internet Explorer.

  45. I think Trecia is as well as I am referring to the same thing…when we go to to manage -> countdown-timer, update the events, and then click on the “update events” button to save the settings, nothing happens.

  46. Thanks Rodney, yeah I am trying to say how come the most recent update makes it impossible to click on the update link under manage–count down timer after we change the settings. Does this have something to the WP version 2.1.2 or 2.1.3

  47. I actually things the issues goes back a few version before 2.1.2, I created a debug utility (Countdown Timer Debug Utility). It will automatically clear out all settings related to the Countdown Timer and send me an email with your WordPress version and a data dump of the Countdown Timer options and data so I can debug it more. If you really don’t want it to send me an email, you can comment out or delete line 21.

    Hopefully that helps.

  48. Hi Andrew,

    I downloaded and activated the Countdown Timer Debug Utility. I didn’t get any notice saying that a log or anything was generated though. I hope it generated and sent the email to you.

  49. Pingback: Andrea Beggi » ZenaCamp: il punto

  50. there is something wrong with your plugin formatting, i think. I am not a great php coder, but the following output is seen on my countdown page and widget:

    Start of the Block Test:
    29 days, 23 hours, 12 minutes agoChoir Concert:
    in 1 month, 47 minutesMy Birthday:
    in 3 months, 6 days, 47 minutesSiowYing’s Birthday:
    in 7 months, 3 days, 1 hour, 47 minutesStart of A Levels:
    in 7 months, 16 days, 1 hour, 47 minutes

    It is just a string of text without propert breaks in between. May I know which line to edit?

  51. Robert,

    Don’t worry, there is nothing wrong. In the “Manage” >> “Countdown Timer” admin panel, you’ll want to scroll down to “Display Format Options” and fill that in. For your site, you’ll probably just want to use the suggested settings.

  52. Ok..another “not a coder” here. How can I change this to show just months/years? I am using it to show the history and frankly when it is 9 years, 3 months and 17 days….the days are irrelevant.


  53. JMM,

    You’ll want to remove lines 450 and 455 of the plugin:

    if ($days) //If there are any days, display them
    	$r=$r.abs($days).' '.__("day").($days==1?NULL:"s").', ';
    if ($hours) //If there are any hours, display them
    	$r=$r.abs($hours).' '.__("hour").($hours==1?NULL:"s").', ';
    if($min) //If we want minutes, display them
    	$r=$r.abs($minutes).' '.__("minute").($minutes==1?NULL:"s");

    Also know that the feature you looking for should be included in the next release.

  54. Hi! I’m using WordPress 2.1.3, with your Countdown Timer 1.7.1 and associated Countdown Timer Widget Add-on 0.1. I’ve just run the de-bug utility (which ought to work).

    I can’t seem to get the widget to display in the Sidebar Arrangement area, but I have tried both of the following codes in a text widget and neither will display any text beyond the title for the text widget itself:

    as well as

    Neither seems to create any sort of data in the sidebar at all, not even an error. I do get an error on the Countdown Management page if I check for up-dates, though:

    Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /misc/14/397/310/473/2/user/web/ on line 154

    Warning: file_get_contents( [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /misc/14/397/310/473/2/user/web/ on line 154 Beta version, eh?

    And my access to the WP database seems impossible through my server’s access to mySQL editing, because the only database I can find has no tables in it. Which is weird.


  55. okay, let’s try that php function again, shall we?

    the one’s I’ve tried are

    ?php afdn_countdownTimer(); ?

    as well as


    in the text widget.

  56. IAM,

    The file_get_contents error means that your ISP has turned off the “file_get_contents” function, so you won’t be able to automatically check for updates. I’ve made a note for the next release, so I’ll see what I can do to either make that fail over more nicely or work around the restriction.

    If you’re using the widget, you shouldn’t have to deal with any code (that’s pretty much the whole point of the widget). Have you added dates yet? Add a date or two. If the dates stick (i.e. when you hit “Update”, the dates are still listed), then there is nothing wrong with your database. Let me know how that works out and we’ll go from there.

  57. okay, I wasn’t too concerned about the “check updates” anyway (although the mandigo theme seems able to do it, so? hmmm?)

    I’ve used the code in the Text Widget because the Countdown Widget doesn’t display in the Sidebar Widgets “drag-n-drop” area. I’ve put the widget file in yor folder as well as the “widgets” folder on its own, activated it, and nothing appears. Maybe I’m getting that wrong?

    There are two dates already there in the admin panel, and they’ve stuck. One of them even adapted from GMT to PDT all on its own (I’m heading to England later this year)!

    So? [shrugs] I dunno?

  58. IAM,

    With regards to checking updates, there are different ways it can be done. I’ll have to see how mandigo does it.

    The widget can go in either of the directories that you’ve mentioned, so I’m not quite sure what the issue is.

    If you’d like, I can take a peek at your WordPress install and see what I can find. Contact me via email if your interested.

  59. Hi Andrew,

    Have you found any ideas on why I cannot update the countdown timer settings? Good luck with school in these last few weeks!


  60. Solution for “Countdown Widget doesn’t display in the Sidebar Widgets “drag-n-drop” area.”

    Simply solution actually: upgrade to the latest version of the Sidebar Widget. You’ll need version 1.0.20060711 or greater.

    A huge thanks to I.A.M. for letting me poke around on his site to find the cause.

  61. Rodney,

    There was nothing in the error report sent back that indicated any issues. If you’d like, I can poke around your WordPress install and see what I can find. Contact me via email if your interested.

  62. and a huge thank you to Andrew for poking around in my back-end!


    I’ve up-dated on a regular basis, so how I didn’t get the post-1.0 Sidebar Widget is beyond me. Ah well, it’s all good now.

    As soon as I sort out our PayPal account, Andrew will be getting some encouragement cash (which he will probably blow at some bar when he’s skiing, but that’s his choice, isn’t it?).

  63. I am using wordpress 2.1.2 and add newely your Countdown Timer 1.7.1
    I aded

    with sucess into sidebar. after I activated the plugin
    but when I go menage>count down and I modify nothing happnes when I click update events

  64. Hard to explain. I’ll try. ๐Ÿ™‚
    I use Safari 2.04. with Pithhelmet and SafariStand.
    And all I know and see is, that no checkboxes are selected by default after loading the countdowntimer page nor any entries I make there get saved.

    After pressing the submit-button nothing happens. Means, the page does not reload or shows some errors.

  65. Works great. Thanks a lot. ๐Ÿ™‚

    But, there is still one little thing your plugin can’t deal with. So far I noticed it’s german umlauts. ๐Ÿ™

    After reloading the form, all previously entered umlauts like “รผ” get converted to “รƒ?ร‚ยผ”. At the moment the only fix is, to re-enter all Event Titles. That’s a little bit annoying.

    Would be nice to have this fixed in the next version. ๐Ÿ™‚
    Thank you very much.

  66. Hmm. That’s kind of interesting. It looks to be an encoding issue. I did a quick bit of searching and I didn’t see anything and I honestly don’t know the answer of how to fix it. I will add it to the list of issues that need to be fixed.

  67. Hi, it works really great. Thanks for making this. I find it odd however that when I set the date to April 29, 2008 it takes 12 months and 2 days as of today (may 2, 2007)..

    Could you help me with that?

  68. You’ve found the secret flaw in the way the time remaining is left.

    Basically, the years are calculated based on 365 days converted into seconds (31536000 seconds is 365 days even). Months however are assumed to be just 30 days (2592000 seconds is 30 days even). Multiply the number of seconds in a calculated month by 12 and you get a number less than 31536000 (31104000 to be precise) and thus our problem. You could just define a year as 12 30-day months, but then in the long run you end up losing time (over 3 months in 20 years). Not a huge deal, but I like to try and be somewhat accurate.

    The fix is in the 1.8 version which will probably be released within a week or so.

    In the meantime, you can grab the 1.8 Alpha version (Rev. 12049) (which is stable as far as I can tell and I use it on this site).

  69. Thanks for the quick update. Unfortunately the alpha version still has the same problem.

    I’ve been looking at PHP’s time functions as well as the comments posted there. Recently some new code was posted.

    I also have done some thinking about this. If you assume a month has 30 days, that would create an additional offset of 7 days for the months with 31 days over the period April 29, 2007 – April 29, 2008. So basically you have to subtract 7 days from the number of days here. But 2008 is actually a leap year, so February has 29 days. Therefore you can subtract 1 day so the total offset for that period of time is 6 days.

    So the correct time would be: 11 months, 26 days (give or take a day ^_^)

    This does change, however, when time progresses (the offset gets smaller)

  70. Well not exactly: the target date is set to April 29, 2008. The code says: in 1 year, 3 days, 19 hours, 22 minutes. I find this odd, cause it is actually less then a year, 366 – 5 days to be exact ๐Ÿ˜‰

  71. Thanks for providing the latest alpha version. This one looks ok. One thing though… if there are 0 years till the date, I feel there is no reason to show the date. Same for the months and days. Thanks again for your quick bugfixing. ๐Ÿ™‚

  72. Pingback: The Tryary WS » [Plugin] Ultimate Countdown Timer 1.0.3

  73. Pingback: Andrew Ferguson dot NET » Blog Archive » 1-Up’d by a 14 Year Old

  74. Pingback: Andrew Ferguson dot NET » Blog Archive » Countdown Timer v1.8

  75. Is there a way to edit the way the countdown is displayed? I want to remove the colon from after the title and remove the dashed underline from the countdown. Thanks.

  76. Pingback: » The Countdown Begins

  77. Pingback: Weblog Tools Collection » Blog Archive » WordPress Plugin Releases for 05/08

  78. James Malcolmson

    WordPress Version: 2.1.3 Countdown Timer Version: 1.8

    Hi. I’m hoping you may be able to help – I have problem using your countdown timer plug-in (I’m using it with Sidebar Widgets) – despite following your suggestions above, I get the message “No dates present” on my sidebar – I have one event listed in the options (Manage -> Countdown Timer -> One Time Events) for the 16 June 2007 at 12:10pm GMT which it has formatted to: Sat, 16 Jun 2007 05:10:00 -0700 (because of the difference between GMT and the server) – do you have any advice as to what the problem might be and how to fix it? Thanks in advance for your help…

  79. Pingback: Present Tensed » Links/Articles that Intrigued Me between May 5th and May 8th

  80. Carl,

    There is no formal way to edit the display, however you can tweak it manually by digging into the code. You’re going to want to look at lines 386 to 410, specifically lines 391, 395, 400, and 404.

    I’ve also made a note and I’ll see what I can do about putting that type of control in formally in the next release.

  81. That’s the correct setting. My only thought is that your servers time may be off, but that seems rather ridiculous.

    My sandbox site is running the same version of WordPress and the Countdown Timer as you are and is seems to display fine. Try ticking the “Display ‘Time since'” option and see if that sheds any light.

  82. Thanks Andrew. I don’t mind editing the code, I don’t know much about php so every time I get to tweak a page or a plugin I learn a little bit more. I was just unsure about where to look, thanks for the direction.

  83. James Malcolmson

    I tried ticking “Display Time Since” – but it still displays – No dates present – is there anyway of getting a webpage to output the server date and time – just to see whether it is out?

  84. Pingback: TripRoast » Blog Archive » Geek alert: Site Updates

  85. Pingback: More Good Wordpress Plugins

  86. Pingback: WeblogToolsCollection Espaรฑol » Blog Archive » Plugins de WordPress publicados 8/5

  87. Hi!

    I was using plugin version 1.7.1 WordPress 1.2. The plugin was working just fine i had 2 count downs on it, added a thirds and when i hit “update events” got this error:

    WordPress database error: [Got a packet bigger than ‘max_allowed_packet’ bytes]
    UPDATE wp_options SET option_value = ‘a:12:{s:19:\”deleteOneTimeEvents\”;s:1:\”1\”;s:11:\”checkUpdate\”;s:1:\”1\”;s:10:\”timeOffset\”;s:643072:\”\\\\\\\\\\\\\\\\\\\\

    when i checked my side bar the timers were there but took forever to load. instead of normally straight away.
    I uninstalled the plugin, and got the latest version 1.8, and i still get the same error but it wont show my countdown timers.

    any help much appreciated!

  88. Hmm – I installed the latest version of WP (2.2) and I have then installed your Countdown Plugin. ( I know you only list compatibility up to 2.1)
    I am using the included widget from your plug in to display the countdowns in my sidebar – however, when i go to change the title and number of events shown in the configuration pop up it will not save the changes. all of the countdowns DO display as normal in the sidebar with the default heading of ‘countdown timer’.
    is this something you can fix and is it happening to other people under WP2.2?
    Pls advise?

  89. @Ant:

    I haven’t played with 2.2 extensively enough, but it seems to be working with my install that I upgraded to 2.2. I’m on the road right now, but I’ll do more testing when I get back home and let you know if I find any issues.

  90. Pingback: Plugins/Plugin Compatibility/2.2 « WordPress Codex

  91. Pingback: WP Plugins DB » Blog Archive » Countdown Timer

  92. Pingback: Flustered » Plugins Used

  93. Is there any way I can auto add a timer each time I make a post? Would it cause any problem if I use different timer for each of my post? I make around 20 post per day and each would be having different timer.

    Any advice?

  94. I installed the widget today. Everything appears to be working normally except for one small but irritating problem.

    It would appear that it is calculating the offset for my PC incorrectly by 2 hours. is there anyway I can tell the widget what offset to use? I did look at the code and found the $offset variable but I cant see where it is specified and my php skills are extremely lacking.

    Any help you can give would be much appreciated.


  95. Pingback: Level10 » Site Info

  96. Dear Andrew,

    First of all, thank you for developing this sidebar widget! I have some troubles gettin it to work though. To start with, I can’t enter any values in the sidebar widget section. If I enter a widget title and max. of events shown they disappear as soon as I save the settings. Furthermore, I filled in a date but the output remains: No dates present. Can you help me?

    Thanks in advance, Mike

  97. I’m having the same issue as Ant. When I go to change the Title in the Widget it doesn’t save the changes. I’m using WP 2.2 as well. I’ve hardcoded it in the meantime.

    Thanks for looking into this.

  98. @Harroguk:

    The offset is calculated based on the server time, server time offset (both as set by the administrator) and the offset specified in your blog settings (under “Options”, scroll down to “Date and Time”).

    The string your probably looking for is

    (date("Z") - (get_settings('gmt_offset') * 3600))

    It’s on lines 360 and 362. Adding or subtracting (depending on which way your offset error is) 7200 from that will fix it, although I’d advise fixing the server issue instead (if that is, indeed, the issue; it may not be).

  99. Unfortunatly there is not option to “Fix” the server issue as it is a hosted solution. it is probably due to the server being hosted in a different country to me I would guess so having its own time offset set to local time. For now I will settle for hacking the code, thanks for the info on the lines I need to edit.

  100. @Mike:

    Hmm. Rather interesting. The easiest thing to do at this point would be to let me log in and take a peak under the hood. If that works for you, contact me via email.

    Otherwise, you’re best bet is to run the Debug Tool listed above.

  101. @ant and @luna:

    I haven’t found any issue with the code. The easiest thing to do at this point would be to let me log in and take a peak under the hood. If that works for you, contact me via email.

  102. Hey Andrew, I was updating my site and came across your plugin. It’s great! It fit nicely into the layout I am expirementing with. Thanks!

    P.S. What “Stats” plugin are you using?

  103. how do I make the title of my countdown bold, the strong tags don’t work. I even replaced them with bold tags, those don’t work either.

  104. @Dan Barry, as I have no other way of contacting you I’m hoping you read this.

    I’ve tested your code and I have issues with it. It will only display “Loading”. Perhaps I’ve done something wrong.

  105. @Sha:

    You could auto add the timer code to each post by modifying your template if you wanted, but you can’t make a different timer for each post.

    I like your idea though and I’ve added it to the “To Do” list.

    In the meantime, you’d probably be best off using some javascript.

  106. i am comfortable manipulating the plugin source –

    however, i cannot figure out how to remove the line break between the event name and the countdown timer.

    i would like it to appear: Event Name: time (all on one line)

    please advise!

    thanks for an otherwise excellent plugin!

  107. Andrew: Hmm. Rather interesting. The easiest thing to do at this point would be to let me log in and take a peak under the hood. If that works for you, contact me via email.

    Hey Andrew, thanks for the reply. I sent you an email so maybe you could have a look at our site? Thanks in advance for the effort!

    Kind regards, Mike

  108. @digitalkess:

    To remove the line break, remove the <br /> tag from lines 391 and 400 of afdn_countdownTimer.php (line 386 if you’re using my modded version with the realtime countdown output).

  109. @Mike:

    There is some weird behavior that can occur when the plugin is located in a subfolder of wp-content/plugins.

    Try moving the plugin up one directory (so it sits in the wp-content/plugins folder), run the debug tool to clear out any old variables then activate the plugin again.

    That should hopefully fix it.

  110. Pingback: » Blog Archive » WordPress Plugin: CountDown

  111. Pingback: Wordpress Pluings für Wordpress 2.2 » Lizenzfreie Texte

  112. Pingback: Hagmann’s in Sevelen » Countdown Timer fรผr Wordpress

  113. ive got the countdown timer working, but it load very very slowly. is there anyway to speed that up? its only started doing this since i upgraded to your mot current version.



  114. @pepsichic:

    I received your debug report and it was waaay bloated (one of the fields contained 321536 slash marks). I’m not quite sure why. In any event, you should be all set now (I hope). Let me know if your having anymore issues.

  115. Hey… Andrew great plug in. Many thanks. Would you be able to create/add a weekly countdown? My wife is pregnant and I would love keep a weekly countdown in sync with the upcoming new born.


  116. A friend of mine set this up but was unable to find a way to limit the number of events, resulting in a really long list! I poked around the code and found a variable called “eventLimit,” but I didn’t find any way to change or set that in the code or the database.

    It’s running WP 2.2 and version 1.8 of the Countdown Timer.


  117. @Lisa:

    If you’re using a theme that supports Widgets, there is a setting in the widget that allows you to limit the number of items.

    If you did it manually instead, you’ll need to replace afdn_countdownTimer() with afdn_countdownTimer("echo", ##) where ## is some integer number of your choosing.

    Hope that helps!

  118. By widget settings, do yo mean the options that appear under the “Manage-> Countdown Timer” tab? Because there’s not an option there for me to edit, and that’s how I make all my other changes.

    I see:
    One Time Events
    Management (the check for updates option)
    Include in The Loop
    Countdown Time Display (hours, minutes, seconds, etc)
    onHover Time Format
    Display Format Options (prefix and suffix)

    I poked around in the code to see if I was just missing something simple, but I didn’t see it in the management page options.

  119. @Lisa:

    Sorry I wasn’t clearer.

    The first thing I’d check is to see if you are using the widget version by clicking the “Presentation -> Widget” tab. If you see the Countdown Timer listed there in one of the sidebars, click on the configuration button to the right and change “Maximum # of events to show” to whatever you want.

    If, when you click the “Presentation -> Widget” tab, you get a message such as “No Sidebars Defined” or you don’t see the Countdown Timer listed in one of the Sidebars (but you might see it listed in the “Available Widgets” box, then you’ll need to go to the “Presentation -> Theme Editor” tab and modify your sidebar code replacing afdn_countdownTimer() with afdn_countdownTimer("echo", ##) where ## is some integer number of your choosing.

    Hopefully that helps some more. If not, let me know.

  120. Ah, I was looking in the wrong place. Alas, still not working right.

    You’ve probably seen the debug report. Debugging seemed to work briefly, but I’m having a really hard time updating the widget. I got it to work once, but it’s back to what it was doing before, which is not actually saving the changes for the title and number of events.

    The widget_text option has several different things in it, but the relevant bit looks like this:

    a:4:{i:1;a:2:{s:5:"title";s:28:"50 Books in a Year Challenge";s:4:"text";s:217:"
    ";}s:6:"number";i:3;i:2;a:2:{s:5:"title";s:3:"Bio";s:4:"text";s:337:"Day lives in Washington DC with her partner and two very spoiled yellow labradors.  By day (no pun intended) she is a mild-mannered Legislative and Federal Affairs Officer but by night she is another frantic-typing, tea-swilling, candle-burning writer.  For a more formal bio please see: in Washington 
    ";}i:3;a:2:{s:5:"title";s:18:"Upcoming Deadlines";s:4:"text";s:94:"Countdown:

    It looks like the change should have been made, but it’s not showing up for some reason.

  121. Aw, rats, that didn’t come out quite right. Let me try this:

    The widget_text option has several different things in it, but the relevant bit looks like this:

    a:4:{i:1;a:2:{s:5:"title";s:28:"50 Books in a Year Challenge";s:4:"text";s:217:"
    ";}s:6:"number";i:3;i:2;a:2:{s:5:"title";s:3:"Bio";s:4:"text";s:337:"Day lives in Washington DC with her partner and two very spoiled yellow labradors.  By day (no pun intended) she is a mild-mannered Legislative and Federal Affairs Officer but by night she is another frantic-typing, tea-swilling, candle-burning writer.  For a more formal bio please see: in Washington 
    ";}i:3;a:2:{s:5:"title";s:18:"Upcoming Deadlines";s:4:"text";s:94:"<li id='countdown'><h2>Countdown:</h2>
    <?php afdn_countdownTimer(); ?>
  122. @Lisa:

    Based on the above comment, I’m a little confused. It appears that you’re manually calling the Countdown Timer from a Text Widget.

    If possible, you should use the Countdown Timer Widget.

    Also, are you remembering to click “Save Changes” at the bottom of the widget page?

  123. Yay for me being complicated!

    The widget I’m using is, as far as I know, the widget that comes naturally. (Can’t imagine the person who set this up knows enough to make her own widget, as she’s brand spanking new to WordPress and all things PHP.) It’s called “Countdown Widget.”

    If I click on it while in the widget space, it pops up a little window that gives me the chance to save different headers and the number of events. If I hit “enter,” it tells me it’s been updated, but no changes are saved. If I click the X to close the box and click “save,” again it says everything is updated, but again, nothing changes. I’ve been able to save changes to other widgets, including a couple of text widgets. But now that I look at it, you’re right, I think it’s trying to save one of the text widgets and the Countdown Widget in the same space or something.

    I will poke around at the database and see if I can’t convince it not to be so silly. ๐Ÿ™‚

  124. How bizarre. Looks like they’d tried to set up a text widget before getting me involved. So I deleted that in case it was messing with things behind the scenes.

    However, I still can’t get the widget to save any of the changes I put into the pop-up box. If I go in and edit in it in the database (after finally remember what s: is for), I can get it to change the title and count variables. It reflects those changes in the pop-up window on the widget page. However, it still won’t save the variables when I do as described above. Database entry stays the same, get the same thing showing up on the main page.

    I’ve tried in both IE and Firefox, just for giggles, but no luck in either place. We’re good for the site for now as far as the site goes, but I just can’t imagine where things are going wrong between the widget management page and the database. (Well, I can, but it involves demons. I have an overactive and bizarre imagination.) ๐Ÿ˜€
    Anyway, thanks for all your help with this! I really do like your plugin. ๐Ÿ™‚

  125. @Andrew:
    A while ago you helped me with configuring your widget on our blog. It works like a charm! Thank you so much for your time to help us out and your quick replies. Gonna check out your site some more in the future. Thanks again!

    Best wishes,


  126. Pingback: » Blog Archive » very nice!

  127. Trying to use your plug-in and keep getting no dates present. I downloaded the most current version just last week, with widgets and I can’t figure it out.

    What does it mean by link on the enter date line?

    Thanks in advance for your help.


  128. Pingback: Plugins - Red Alt

  129. Hello, just downloaded your plugin but after installing i’m getting a blank page when i want to enter some dates in it.

  130. @Jim DeLozier:

    I assume you’re using the latest version of the plugin? What version of WordPress are you using? Also, where is the plugin installed?

    Try running the debugger and see if that helps.

    If that doesn’t help, come back here and I’ll see what I can do.

  131. I had the same problem that Jim DeLozier is having. I’m running WordPress 2.2.1 and the countdown version 1.8. The problem was that I uploaded the whole subdirectory. Once I deactivated the plugin and reuploaded it to the root wp-content/plugins directory, it worked just fine for me.

    I’ve got a customization question for you. I’m building a fan site and I want to make the countdown look like a game clock on a scoreboard. How do I go about changing the format the countdown appears in?

  132. @ andrew Ferguson. The problem i get is when i activate the plugin and going to the page to setup the countdown up. it’s blank. nothing to see ๐Ÿ™ ( sorry for my bad english )

  133. @Derek Perkins:

    You’re going to want to look between line 467 and 513 in version 1.8.

    What basically goes on there is some checking to see if that specific unit of time should be displayed. If so, then calculate it and add on the appropriate unit of measure. If that unit of time isn’t called, then that time is rolled over to the next unit of time that comes up.

    I’m curious to see how it turns out if you end up doing it.


    Do you know what directory the afdn_countdownTimer.php file is located in?

  134. @ Andrew Ferguson

    You can view the initial results of what I did over at my website at It’s got all the basics of how I want it done. I tried to code cleanly enough that you could add this as an admin option at some point, and I think it wouldn’t require a whole lot extra. Here is kind of how I see it being implemented:
    Move the plugin into its own subfolderHave an option in the control panel that asks if you want to use images or textHave the plugin run through a list of folders in the plugin that contain the number images – right now I just have 0-9 and :, but you could add a couple images like ‘ago’ or ‘in’ or whatever makes sense. Then the user can select which image folder to pull from, basically making skinning the output fairly easy
    I don’t know anything about plugin development or the panel, and I don’t really have the time to try and add that to the entire plugin and create the admin panel options, but I’d be more than happy to help link my code to that code if you’d like.
    Another question is how would I just return the raw string data if I wanted to pull the data into a header or other part of the page? How would I separate events if I only wanted specific ones?

  135. Sorry about the formatting of that last comment. I put it into bullet points that showed up in the preview, but obviously didn’t make it into the comment itself.

  136. My last question is about making it automatically updating. How tough would it be to make it so that if you enabled seconds, it would always be clicking down?

  137. @Soulmaster:

    Where did you upload the afdn_countdowntimer.php file to?

    @Derek Perkins:

    The two upcoming versions, 1.9 and 2.0, are pretty much locked down from a features perspective. However, I have added your idea as something to look at for the future. While I haven’t looked at the actual code, your process is solid and well though out.

    To begin answering your questions, what types of raw string data are you looking for, the text part of each event?


    What type of separation are you looking for?

    The quick overview is that the events are stored in a 2D (array within an array) serialized array in order of the time they occur, with the event occurring soonest being listed first.

  138. @ Andrew Ferguson

    I’m looking to make a scoreboard that counts down the time until the next football game. I really like the plugin, how you can add lots of events and have the widget automatically switch over so I want to work within that framework. I’ve now gotten it to where it will show the individual digits as images that look like my scoreboard numbers. I still want to use html tables or something to format the rest of the scoreboard, and I don’t know how to pull out the title and the time remaining inc. formatting separately. I’d like to call the widget and say that I want the nearest event in the future title and string formatting. This sounds really confusing, even to myself…

    Looking at it programatically, this is how I’d want it to work:

    Code that creates scoreboard
    More prettiness code
    Finish scoreboard code

    I’d also want some way to choose specific events rather than just the next event, maybe with the database ID or something?

    Would you like me to send you the code for what I threw together?

    What features are planned for 1.9 and 2.0? What timeline do you have for releasing them? Will that include some sort of Javascript, AJAX or something that will automatically refresh the countdown?

  139. Again, sorry about the weird format of the comment. I’ve never figured out the halfway reduced functionality of blog comments, especially when the preview doesn’t match the end result. I’ve been looking for a good preview plugin that doesn’t have that problem, but I’ve yet to find one.

  140. @ Andrew Ferguson

    I’ve noticed that most of the time when I make changes to the widget, ie. title and # of timers to show, it doesn’t save the changes. I’ve made two changes since using the timer, but I can’t figure out how to do it. Do you know what might be causing that?

  141. @Derek Perkins:

    There is a database ID of sorts, it’s actually the array index. The problem with using the array index is that it’s subject to change when new events are added.

    You’re welcome to send me the code and I promise to take a look at it at some point in the future. Updates include

    1.9 is just around the corner (hopefully by the end of the coming weekend). It includes a couple bug fixes, ability to include a standalone countdown timer within the loop, user defined style tag, added a week unit of time.

    2.0 will see some form of automatically refreshing countdown. Probably not AJAX because that’s a little too over the top. Javascript is the leading candidate. There are actually two versions of my plugin with Javascript enabled floating around the Interwebs and I’ve talked with both authors and they’ve agreed to let me integrate their work back into mine; so it shouldn’t be all that hard.

    As for your problem, version 1.9 should fix it.

  142. Pingback: Andrew Ferguson dot NET » Blog Archive » Countdown Timer v1.9

  143. I have added the plugin, added an event, and then added the widget. In the widget, I entitled it “Coming Events” and added -1 as the number of events to display. After “Save Changes”, the widget is there but with no events. When I look at the widget again, the settings I put in are not there.

    Any assistance is appreciated.

  144. @Brian:

    My guess is that you may be using an older version of the Widget plugin. Make sure you have the latest version (1.2.1). Also, what version of WordPress and Countdown Timer are you using?

  145. I am using WordPress 2.2.2 and the Countdown Timer is 1.9.

    I don’t see a “widget” plugin under Plugin Management. I’m placing the timer in the sidebar found in “Presentation”, “Widgets”. I select “Countdown Widget” from Available Widgets. No where on the “Widgets” screen under “Sidebar Arrangement” is a section which tells me what version it is.

  146. @Brian:

    Sorry, I realize that might have been confusing. I was actually talking about the Automattic Widget plugin which I realize is officially called “Sidebar Widgets”. However, since you are running a WP version 2.2 or greater, it’s automatically embedded.

    Try downloading the debugger and give that a shot.

  147. Pingback: cuenta regresiva

  148. Pingback: Just 4nother Day » Blog Archive » Neues Design und neuer Klimbim

  149. Pingback: Anonymous

  150. How do I publish events in a specific time zone? I see that when I put up an event it defaults to -4 instead of -7.

  151. @Zeldi:

    As of now, the program uses the time zone of the server to determine what offset to use (i.e. -4). As I think about this, this is probably undesirable so I’ll be tweaking the code a bit for the 2.0 release.

    In the meantime, you can enter a date/time for the time zone you want, and then append -0700 to the end.

    For example:
    1 Jan 2008 00:00:00 -0700 would be New Years in the Mountain Time Zone in the US.

  152. Pingback: Plugins Used : Diary of a Track Bunny

  153. Pingback: Countdown auf deutsch - WordPress Deutschland Forum

  154. Pingback: Szabo » Plugins:

  155. Pingback: Countdown to Freedom Begins | Financial Freedom Ideas

  156. Hi Andrew,

    I have a wordpress version 2.2.2. and plugin version 1.9. I use the widget version of the plugin and even though I change the default title which is Countdown Timer into something else (like Time to Freedom) it always reverts back to default.

    Any ideas?

  157. Pingback: 101 Top Wordpress Plugins

  158. Hi all, I’ve the same problem of Tomaz. The plugin 1.9 is in wp-content/plugins/ and I use wordpress 2.2.3 on firefox Can you help me ? Thank You. Shion

  159. Two updates everyone:
    1. Comments mysteriously were disabled when I upgraded. I thought I had ironed out the bug earlier, but I guess I hadn’t. In any event, they are up now!

    2. The Technical Preview for Countdown Timer Version 2.0 is out (the TP is actually version 1.95 for upgrading ans SVN tagging purposes). I’m currently using it on my blog and would appreciate any feedback and comments anyone has:

  160. Hallo Andrew,

    I have the same problem as Shion and Thomas. I have tried to upgrade to 1,95, but it still doesent work to change the title.

    I have tried: 1. Disable and… 2. Disable the plugin…

    Can you help me ? Best regards ๐Ÿ™‚ Claes

  161. Pingback:

  162. Pingback: » Countdown Timer

  163. Pingback: Das ging fix » Blogwiese

  164. Andrew,

    Great plug-in. Thanks for creating and sharing.

    I’m trying out the TP on my site, and cannot seem to disable any of the Countdown Time Display units. For instance, if I choose No for Years, Weeks, Hours, Mins, Secs and Hit the Upload Events button, then reload the site in Firefox, all of those items are still shown. They are also shown in IE6, altho I just checked my site for the first time using IE and noticed that there is an unrelated issue to the pics showing! LOL

    Thanks for any advice.

  165. @James:

    If you take a look at the post on the TP:

    Now, a word on the JS. This is the first version and there are only two modes: on and off. That means that you can’t change the format of the Javascript countdown (it will always display the years, months, days, hours, minutes, and seconds). I’m working on an elegant solution to this problem and would welcome any code, comments, suggestions, feedback, etc.

    In short, what you’re seeing is normal behavior for the TP.

  166. Andrew,

    Um. Oops. My bad! I guess in my zest to try the latest and greatest, I skipped that. Sorry!

    Thanks again.

  167. Pingback: evilwoobie » Plugins: Get Only What You Need!

  168. Pingback: cymru66 » Blog Archive » Countdown Timer Updated With 2008 Races

  169. Pingback: Plugins

  170. Yeah I have the same problem as the three or more already stated:

    I have 2.3 WP 1.9 countdown timer and the title and number always changes back, saving doesn’t do it, resetting doesn’t doit, reinstalling doesn’t doit….

    same problem as claes, shion, and thomas

  171. Hi Andrew,

    Thanks for this great plugin. I have installed it on my site, but I can’t seem for the life of me change the name of the widget to ‘Counting It Down!” instead of “Countdown Timer”.

    I have tried saving changes in WordPress Widgets page but nothing changes and “Countdown Timer” remains. ๐Ÿ™

  172. Pingback: Plug-In’s -- DOUBLE VISION

  173. @Citizen Smith:
    You can increase the size of the font that displays the countdown data by modifying the “Display Style” in the “Display Format Options” section of the management page (Dashboard -> Manage -> Countdown Timer). The text box slips information into the ‘style’ attribute, so you can add any CSS attributes there, such as font-size: 20px;

    If you use the Countdown Widget, you can also use the ‘countdown-widget’ CSS ID to modify the font size by adding something to the effect of:
    #countdown-widget { font-size:30px;}

    in the style.css file of your template.

  174. WordPress: v2.3.1
    MySQL: v5.0.45-community-nt
    PHP: v4.4.7
    Server: Microsoft-IIS/6.0

    Hi. No problem installing it but there’s no result.


  175. Hello, I’ve added the code below but nothing is showing up on my sidebar. I turned on “Enable CountdownTimer within The Loop” but the countdown isn’t appearing. Do I need to enable something else in WP to get this working?

    (I removed the brackets so this code will appear)

  176. @Regan:

    You need to put in a date where it says “ENTER_DATE_HERE”.

    For example, if you wanted to countdown to New Years, you’d put

     <!--afdn_countdownTimer_single("1 Jan 2008")-->
  177. Hi Andrew, thanks for the quick response. Sorry, I should have posted the actual code (I was just using your example)… this is what I have on my website:

    <!--afdn_countdownTimer_single("24 Jun 2008 08:00:00 -0700")-->

    I looked at the source of my page and that exact line is still there after navigating to it in my broswer (meaning it was not parsed by WP). What does this mean?


  178. @Regan:

    Okay, I took a look at your site (I got the debug report and put two and two together). afdn_countdownTimer_single is only designed to be used within “The Loop”.

    “The Loop” is basically the blogging part of WordPress. The sidebar is not part of The Loop, so it doesn’t get processed. Instead, you should either use the included widget or PHP and the regular management interface.

  179. Pingback: » Plugins

  180. You have an unintended & in line 627 in front of $value:

    //Check to see what options exists and add the ones that don’t, keeping the values for the ones that do
    foreach($afdnOptions as $key => &$value){
    if(array_key_exists($key, $theOptions)){
    $value = $theOptions[“$key”];

  181. Pingback: Andrew Ferguson dot NET » Blog Archive » Countdown Timer v2.0, Now with v2.01 goodness!

  182. @Jim:

    Well, it actually is intended. It’s supposed to allow the foreach to pass by reference, but it looks like it only works in PHP5 and greater.

    Thanks for catch. I’ve issued an update.

  183. I added your Countdown Timer (v2.01) to my web site and it worked fine until just a little bit ago (perhaps around 6:00 Central, or 00:00 Zulu). Suddently the timer jumped an extra 2 days forward. I have it setup for Jan 3, 2008 @7:00 PM Central, and it’s reporting 1 day, 23 hours, 10 minutes (It’s 7:50 PM right now). I’m running on a WordPress platform at, and the time on the server appears to be correct, so I’m not sure if it’s problem with the plugin or at GoDaddy, but thought I’d start here.

  184. Hi Andrew, is the live countdown implemented in the 2.01 version? As you can see on my site I have a slightly modified version of 1.8 with a live countdown. I would love to update but only if it counts live.

    Thanks again for an awesome plugin.

  185. Great plug-in! It worked for a little bit…but then I went to change a date. I went to manage>countdown timer and I suddenly got this error message:

    Fatal error: Cannot use string offset as an array in /home/.venettta/ on line 91

    I did a search and couldn’t find out anything. I uninstalled it several times (and when I did, it kept my info that I had input).

    I’d love some help cause this plug-in is exactly what I wanted.

  186. Is there any way I can delete all the info and start from scratch? I already installed it but for some reason it keeps all my information

  187. Pingback: Plugins Used | 10 16 64

  188. Pingback:

  189. Andrew, this is a GREAT plugin !

    I would like to ask a question though… Do you think I could edit this plugin to unlock certain pages once the timer runs out? I’d like to display server events graphically on one pages and “unlock” the content after the timer runs out?

    Sound goofy?

  190. @denny:

    In order: no, perhaps, yes and no. ๐Ÿ™‚

    The easiest way to this is to use a template page and then use some PHP code to have the sections you want displayed in the future revealed at a particular time that is sync with the countdown timer. Note that the timer would not actually unlock anything, it would just be sync’d.

    See for more information on creating page templates in WordPress. For the actual coding you want to use an “if” statement that checks against the time. Something like:

    if(time() >= strtotime("1 Feb 2008 12:00:00 pm GMT"))
    echo "Some text here to be displayed after 1 Feb 2008 @ 12 pm GMT";
  191. Hey,

    there’s following error after activating countdown timer-Plugin:

    Fatal error: Cannot use string offset as an array in /var/kunden/webs/web7/mm/wp-content/plugins/countdown-timer/afdn_countdownTimer.php on line 91

    I’m using WP 2.3.2 and CT 2.01.

    What can I do?


  192. Hey,
    after using your Debug-File the error wasn’t any longer there.

    OS: Linux
    Server : Apache/2.2.3 (Debian) PHP/5.2.0-8+etch9
    PHP Version : 5.2.0-8+etch9

    Don’t know what it was, but the plugin runs now ๐Ÿ˜‰
    I like it, but i don’t know how to change the style (fonts etc.)!?

    Thank ya!

  193. I’m having trouble with creating new timers. I had a few that have expired and deleted themselves as expected. I created a new one successfully, but I cannot create any more. The widget is setup with a “-1” limit. Running WP 2.3.1 on Godaddy’s Hosting Connection (they support the WP software in the background, which is why I’m not on 2.3.2 yet).

  194. @Art Smith:

    I tried replicating your issue, but I’ve been unsuccessful. Can you elaborate on what you mean when you say that you can’t create any more. A couple of questions:
    Do you get a field to enter the data in?
    Does the field not save?
    Does the page reload?
    If it does reload, do you get the fading banner at the top that says: “Options updated successfully”?

  195. Sorry, I should have been more specific. My bad. ๐Ÿ™‚
    I get a new line to enter a new timer (under the one that it took okay)
    I can enter the data.
    When I click on “Update Events”, the screen appears to process, says “Options Updated Successfully”, but all that shows is the first line and then the empty spaces for a second line as if I hadn’t done anything. (So, no, the field does not save, yes the page reloads, and yes I get the fading banner at the top that says “Options updated successfully).

  196. So it saved it as Dec 31, 1969 at 17:59:59 (-6.00), which would actually be Midnight, Jan 1, 1970.
    Perhaps I entered the date in wrong? I’m trying to set for “Jan 29, 2008 @7:00”. When I changed it to “29 Jan” instead of “Jan 29”, it worked. Sorry for the bother, and thanks for the help! ๐Ÿ™‚

  197. @Manuel:

    What alignments are you trying to change?

    The “Display Style” in the “Display Format Options” section of the management page (Dashboard -> Manage -> Countdown Timer) will accept any form of CSS style you pass to it.

  198. It works now when i maybe write:

    and in style.css:

    { [..] text-align: right; }

    But it doesn’t work when i change into in Display Format Prefix.

    But this solution is okay. Thank you.

  199. I need to translate year, month, day, minute, second for my spanish site, i tested changing this line:

    $s = $s.($resultantDay + intval($rollover/86400)).' '.($resultantDay==1?__("día", "afdn_countdownTimer"):__("días", "afdn_countdownTimer")).', ';
    No appears in the screen, and i tested on lines but thens breaks the plugin.

    Can u tell me what i need to change if it this posible in easy way?

    Thx and sorry for my bad english.

  200. @ deliciousframes:

    In the file afdn_countdownTimer.php you can find //Pass on language variables
    There you maybe can change

    [...] '".addslashes(__('day',


    [...] '".addslashes(__('dรญa',

  201. Manuel thx for the reply, i tested here too, and changing here breaks the plugin with:

    Fatal error: Call to undefined function: afdn_countdowntimer() in /wp-content/themes/deliciousframes/sidebar.php on line 28

  202. curious..
    the translation to german works..

    is this the code u use?
    echo "fergcorp_countdownTimer_js_language['days'] = '".addslashes(__('dรญas',

  203. Great plugin but I’m having a minor issue I’m wondering if you could tell me how to fix. It’s February 1st and I have a date set for Feb 22nd and it’s saying 20 days. Shouldn’t it be 21? And I have 2 dates. One is set for July 31st and the other August 1st and they’re both saying 5 months 29 days. Does this have to do with the leap year or am I just missing something? My wordpress date is configured correctly. Latest version of the plugin and 2.3.1 for wordpress.

  204. @deliciousframes

    With regards to the error you’re getting, the code in your sidebar should call:
    Note that the “T” in “Timer” is capitalized.

    Updated to make the comment clearer

  205. @Amanda

    The February days are correct. Because it’s after 1pm, you lose a day.

    The July/August days is a bug. What’s interesting about this bug is that it is not present in the PHP version of the code and it only occurs when you turn on the JavaScript countdown feature. So it must be a bug somewhere in the JavaScript. I’ve made a note of it and will work on getting it fixed. In the meantime, if you turn off the JavaScript countdown, it will display correctly.

  206. @manuel

    Yes, i use this code, thx for your dedication.

    @Andrew Ferguson

    Thx, i appreciate, if u need help with the spanish translation contact me or send me the file in english and if u wish i translate and send u.

    And for ur last comment yes, the call on my sidebar is correct:



  207. I have downloaded the new version, tested but doesn’t appear the translation (lol, is so funny), i renamed files, deleted and tested only with spanish files, changed the directories for pot and mo & other milions things, spent 1 hour changing and testing and it won’t work ^^U, finally i desisted and i downloaded the po editor to correct ur spanish translation, please explain to me how is the correct install on directoris for all files, on my first test i only deleted the previous version and placed the new one in the same folder, result: appears in english too.
    Once i finished translating and testing, i’ll send you the pot file.

    I’m owned :)!

  208. @deliciousframes, et al:

    So I accidentally released version 2.1 because I configured a file incorrectly. The problem has been fixed and version 2.01 is still the official stable release. The language file that was included with version 2.1 (unstable trunk) has not actually been tested yet. If anyone upgraded, I suggest you downgrade back to 2.01 since I haven’t done extensive testing yet.

    I would be great if you’d like to do a better translation of the Spanish language file. I just used Google Translator, but I’m sure you can do better.

  209. @deliciousframes:

    First, you need to make sure that in your wp-config.php file, you specify which language to use. There’s also a bug in the current stable version that requires the .mo file to be in the plugin directory and not in a subdirectory of the plugin directory.

  210. Hi Andrew,
    Could you check my countdown timer please. I have a one off timer within my post. It displays but it does not countdown. The error message I picked up (from Firebug Firefox add-on) was:

    “document.getElementById(fergcorp_countdownTimer_js_events[i].id) has no properties”

    I’ve ticked enabled loops and javascipt countdown.


  211. @Daniel:

    I took a peak and I think I know why the error is happening. When I looked at your source code, it looks like you have two timers. However, only one of them is being displayed. Do you have another timer that you setup? Perhaps a One Time Event timer?

  212. Excellent plugin – thank you!

    Just for a future release – it would be great if you could add two features:

    1) The ability to have text displayed after the event occurs

    2) A timeframe to keep the above text displayed for – say two weeks.

    Again – thank you!

    – Josh

  213. Hello Andrew

    Your countdown plugin is exactly what I need. However, I can’t make the realtime countdown working. I have enabled seconds in the countdown, but they don’t go down unless I refresh the page.

    I am using WordPress 2.3.3 and Countdown Timer 2.01. Plugin files (afdn_countdownTimer.php, afdn_countdownTimer.pot and fergcorp_countdownTimer_java.js) are installed under /wp-content/plugins/countdown_timer/.

    I’ve already tried using the debugger, but nothing changed.

    Thanks in advance!

  214. @Josh (and deliciousframes):

    For idea #1, are you wanting a different text displayed after the event occurs? There’s currently an option to display the “Time Since” an event has occurred if that’s what you were thinking about.

    For idea #2, I do like that and will work on incorporating it into release 2.2.

  215. @Rafael:

    Is “Enable JavaScript countdown?” set to “Yes” ?

    It also looks like your theme does not call wp_footer(); in it’s footer.php file.

    If you put

    <?php wp_footer(); ?>

    right before


    that should fix it.

  216. Andrew,

    Hey! My idea for number one was actually to replace the text completely. For example, there would be a countdown to someone’s birthday and then after the day occurs it would say “so-and-so is now 30” with no counter.

    Thanks for responding so quick!

    – Josh

  217. Thanks Andrew!

    Indeed, the problem was the missing wp_footer() function!
    I wouldn’t have figured it out in a while if not for you!

    Thanks again!

  218. @Josh:

    Hmmm…I’ll have to take that under advisement.


    No problem. It’s happened before and there’s been chat on one of the WP mailing lists about how to solve the problem in general because someone *cough*themedevelopers*cough* keep not putting it in (wow, that’s great English right there).

  219. Thanks! Worked great the first time. I’m using it to count down to the end of an SEO contest. The webmasters are all trying to rank #1 on google for the search term ” Greatest Real Estate Agent in the World ” The contest ends on May 1st 2008 and this is the perfect tool for the count down! Thanks Again.

  220. Pingback: Andrew Ferguson dot NET » Countdown Timer v2.1.1

  221. Pingback: Brian.Carnell.Com » Kevin Kelly on Counting Down Your Time Remaining

  222. Hello,

    Your plugins seems very nice. I installed it on my computer and is working fine.

    Unhapilly when I installed it on my web site (1&1), I got the following message :

    Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /homepages/…/wordpress/wp-content/plugins/countdown-timer/afdn_countdownTimer.php on line 795

    What could be wrong ?

  223. The JavaScript Code is not valid XHTML 1.1 or XHTML 1.0 Strict.
    The attribute “language” in the Script-tag ist wrong. Allow is only the type-attribute:
    <script type=”text/javascript”> …</script>

  224. @Denois:

    You can safely ignore the message since it’s only a warning. The warnings may or may not show up, depending on how PHP is setup. I’ll work on suppressing the warning in the future.

  225. @Kirsch:

    Good call, although if your site is XHTML 1.0 Transitional you’ll be fine for the time being. I’ll make a note to check against the Strict standards though for the next release.

  226. I need to change the title of the timer from “Countdown Timer” to something else. Im using the widget, which works great, but how do i change the title? If i use the manual code option and place the code in my sidebar it only comes up if I have it at the very top of lsidebar.php….anywhere else in the code it doesnt appear so i cant change the title of the timer inserting the code directly into the lsidebar.php.

  227. Pingback: DonsTag » DonsTag 2.3.3 beta

  228. Pingback: 72?47?wordpress???? | ????

  229. Pingback: ??100?Wordpress???? » Antmy's blog

  230. @Matt:

    If you’re using the widget, go to the Widgets page (Presentation > Widgets) and then click on the “Configure” button for the Countdown Widget. There you can change the title of the Countdown Widget. When you’re done, click the “X” and then click “Save Changes >>”

    Hope that helps!

  231. I installed Countdown in plugins/countdown-timer directory. I enable in Plugins and then go to Manage Countdown Timer. Everything looks great.

    Now I don’t make any changes, I simply click on Update Events and I get this error

    Cannot load afdn_countdownTimer.php.

    I get the same error if I make any changes to settings like turning on ‘seconds’ I get the same error.

    Any suggestions?

    – Steve

  232. Pingback: ????? » Blog Archive » 100?wordpress??

  233. great plug in, i installed it, used the widget and it works perfectly for me

    i then wanted to customize the language since my website is in the french and there is no translation for french

    based on a previous post i modified “afdn_countdownTimer.php” as following:

    echo “fergcorp_countdownTimer_js_language[‘days’] = ‘”.addslashes(__(‘jours’,

    and when i check the results, the plugin still works but without any modification of the language: any idea?

  234. @Steve Pierce:

    Hmm, I just tried to reproduce your issue using WP 2.3.3 and Countdown Timer 2.1.1 and I could not get it to work. What versions are you using?

    It could be a file permissions error, but that wouldn’t explain why you can originally load the page. Can you give me more details on the error? Is it a PHP error or a WP error?

    You might try deleting the file and downloading it again.

  235. Timer 2.1.1 and WP 2.3.3 PHP4 and IIS6

    When the error happens I see a white box, the Word Press logo/icon and a simple line

    Cannot load afdn_countdownTimer.php.

    The title of teh Browser window is WordPress > Error

    So I am guessing it is a WP error.

    – Steve

  236. @scfranck, et al:

    I think part of the code you included was cut off. There’s a note right above the comment box about how to properly include code so that it doesn’t get messed up.

    The best way to modify languages without breaking things is to use a language file. As you noted, there is not French version yet.

    If you (or anyone else) would like to help translate Countdown Timer simply go to:

    …and type the translations in. Then click “Submit” at the end of the form and the translation will be sent to me for inclusion.

  237. There was no code or message cut off. The comment posted is exactly what I am seeing. I can post a screen shot if you want.

    Is there a debug mode to turn on so you can see more of the system and possible error.

    – Steve

  238. @Steve Pierce:

    I know what screen you’re talking about, I doubt a screenshot would help much but feel free to email me it anyway.

    It appears that some other plugins have had similar issues, but I haven’t seen any resolutions. This is also the first time I’ve encountered this error with this plugin.

    When the error page comes up, what’s the URL?

  239. Pingback: Andrew Ferguson dot NET » phPo Translator - Online PO Translator

  240. @Steve Pierce:

    I’m still a bit puzzled. Based on the URL information, I’m thinking that IIS may be a bit wonky in the way it treats $_SERVER['REQUEST_URI'].

    Try this, on line 228 remove:

    <form method="post" name="afdn_countdownTimer" action="<?php echo $_SERVER&#91;'REQUEST_URI'&#93;; ?>">

    …and replace it with:

    <form method="post" name="afdn_countdownTimer" >

    In short, remove the ‘action’ part of the form. I’m hoping that does the trick.

  241. @Lomes:

    I’ve been doing some cursory testing with the latest dev copy of 2.5 and everything seems to be working fine. I’m also using it on my site which is running 2.5 RC1 and I haven’t had any issues.

    In short, everything seems to be working and you should be fine with running it. However, I’m not quite ready to give it the ‘stable’ label.

  242. You know plugin development far beyond me (a user) but one thing I’ve read is that some plugins have been ok if they were installed in a 2.3 or similar instance that was upgraded to 2.5, but NOT if it was a fresh 2.5 installation.

    Something to possibly check out. Thanks for the update.

  243. Hey that seemed to work. Now next question.

    If I enter a date and time and then Update, is there supposed to be a list of dates.

    If so, then something is still wrong.

    Even embedding a link in a page doesn’t work.


    I put the following in a page

    Here is a direct link to the page

    Next Live Broadcast<br>
    Ypsilanti City Council<br>
    April 1, 2008 8am<br>
     <!--afdn_countdownTimer_single("April 1, 2008, 07:30 pm")-->
    <embed width="416" height="340" flashvars="autoplay=false&viewcount=true" src="" type="application/x-shockwave-flash" allowfullscreen="true" />

    Any suggestions are greatly appreciated.


    – Steve

  244. @Steve Pierce:

    I tried the code you provided and it worked just fine for me. When I took a look at your site, I noticed a couple of things in the source code. First, when I look at the JavaScript that’s included, I don’t see the data representing any countdown timer. It just ends with:

    var fergcorp_countdownTimer_js_events = new Array();

    Below that, you should also have something that looks similar to:

    fergcorp_countdownTimer_js_events[0] = new Array()
    fergcorp_countdownTimer_js_events[0]['id'] = "x6514a3618a293fd09cc196cadf4cd3b0";
    fergcorp_countdownTimer_js_events[0]['targetDate'] = "1207099800";

    Second, when I search your source code, I don’t see:

    <!--afdn_countdownTimer_single("April 1, 2008, 07:30 pm")-->

    …which is good.

    However, both of these should not be true.

    For kicks and giggles, try replacing the afdn_countTimer_single bit with:

    <!--afdn_countdownTimer_single("Tue, 01 Apr 2008 20:30:00 -500")-->

    It’s an RFC 2822 formatted date and should best be parsable by your system if it knows what’s good for it ๐Ÿ˜‰

  245. Pingback: ???? » Blog Archive » ???wordpress ?100????????

  246. Pingback: Juno’s Magic » Blog Archive » My Theme! My Plugins!

  247. Pingback: Maxsailor’s Blog » Blog Archive » Wordpress ?100???

  248. Pingback: ??100?Wordpress????

  249. Pingback: ??::z8′blog::??? » Blog Archive » wordpress??????????????

  250. Pingback: Wordpress 2.5 and plugins | 12 Witnesses

  251. Pingback: Umfrage: Das Ende der Euro 2008 - B-Seite

  252. Is there any way to remove the Event Title from displaying? I’ve tried leaving the field blank, but that just deletes the event all together. Any suggestion?

  253. Pingback: ??.??? » [??]??100?Wordpress????

  254. Pingback: WordPress?? » Blog Archive » ??100?Wordpress????

  255. Thank you Andrew. However, the colon still remains in the title, regardless of the non-breaking space. Any thoughts?

  256. @Jym:

    You can use:


    to insert just the countdown part. However, you can only use that technique in Posts and Pages. If you want to use it in a sidebar, there currently is no official way of doing it (although you could pretty easily hack it in). I’ll work on adding this feature to the next version.

  257. Hello,

    I use CountdownTimer version 2.1.1, and it seems to me there is a 1 day shift in some cases, for example I want to see the time elapsed since Mon, 03 Mar 2008 13:28:00 +200, it prints 44 days, 23 hours, 40 minutes ago, whereas it should be 45 days 23 hours, 40 minutes… (we are 18 April 12:08)
    All dates before 17 march are affected, dates after are not, so it is not related to DST.
    Any suggestion ?

  258. ummm- why won’t this plugin accept the date October 31st, 2008? I enter it in the manage section on WordPress as ’31 October 2008′ and apply changes. It then changes it to 30 Oct 2008, or Nov 6 2008, or something really odd. The date counts are wrong as well- says there’s xxx days until that date- but there’s really 3 more than it’s stating. It’s all messed up. Any ideas?

  259. @Specter:

    Your issue with October 31st is due to the difference between timezone that your server is set to and the timezone that WordPress is using, it’s also probably the result of Daylight Saving Time. This is normal behavior and the date should be displayed at the correct (and intended time) on your blog.

    The extra days are a known issue and will be fixed in the next release.

  260. Pingback: BlogSchaefchen » Neues in meinem Blog

  261. Hello,

    I use CountdownTimer version 2.1.1 and WP 2.5.1. I delete a event an I have a error now.

    Fatal error: Cannot use string offset as an array in /homepages/35/xxxxxxx/htdocs/tvjunk/wp-content/plugins/countdown-timer/afdn_countdownTimer.php on line 102.

    Please help and thanks.

  262. @Marion:

    I checked against that version of PHP and I still can replicate the issue. A couple of things to try: Deactivate and remove Countdown Timer. Then, download the Countdown Timer Debug Utility (above) and run that. Finally, redownload and install Countdown Timer.

    If that still doesn’t fix the problem, try your best to give step by step directions so that I can try to reproduce the problem.

  263. @Everyone:

    I’m hoping to release Countdown Timer v2.2 on or around May 8th, 2008. This is a call for ideas and suggestions that you’d like to see implemented in the next version.

  264. Pingback: ?????? » ??100?Wordpress???? ???

  265. @Andrew

    I run Countdown Timer Debug Utility, redownload the timer version 2.1.1. and activated it. Now I create an event. It’s fine. Then I deleted this event and save the options I have the error (above).

    I have on my PC xampp for Windows. I have WP 2.5.1 installed and the timer 2.1.1 tested local on my PC. (php 5.2.5)

    I delete an event and save the options and I have the same error.

    Sorry if my English is not entirely correct. I hope you can understand me.

    Have a nice week.

  266. I have two ideas! ๐Ÿ™‚

    It would be great if you could add two features:

    1) The ability to have text displayed after the event occurs

    2) A timeframe to keep the above text displayed for – say two weeks.

  267. @Josh:

    I’ve already implemented a Timeframe feature in the next release.

    I’m still mulling over the option to have different text displayed after an event occurs, so (anyone) feel free to try and persuade me either way. My current thought is that it’s a pretty niche functionality and having all the boxes for it would clutter the interface (which is already kind of cluttered as it is).

  268. Pingback: 100?Wordpress??????????? | ??????

  269. Im having problems to change the language, could you give me an extract of the part of the code where I shoul make the changes to put it in spanish?

    thanks you very much an, your plugin rocks

  270. Pingback: Andrew Ferguson dot NET » Call for Translations: Pending Release of Countdown Timer v2.2

  271. Pingback: Andrew Ferguson dot NET » Countdown Timer v2.2

  272. It would be nice after an event, it puts automatic a RESULT.


    15 houRs left for traevel –> after the event has finished, it shows WE ARE TRAVELING RIGHT NOW

  273. But changin the wplang from wp-config.php change the language of all the wordpress,I want only the language from the plugin ๐Ÿ˜›

  274. I like countdown timer, but in version 2.2 the Click Update Events button is not there anymore. I can’t confirm new input.

    How can I get it back?

  275. Found out that it has something to do with Internet Explorer 7. It’s not compatible.

    When I refresh the page, the button is shortly visible.

  276. Unfortunately, I have switched back to version 2.1.1. This version works perfectly for me.

    With version 2.2 there is no Update Events button. There is also a difference of 17 days between the Example Display (with the right info) on the Settings page and the info shown on the webpage. I don’t know why, it could be my computer or maybe there is a conflict with another plugin. If you like I can send you a list of plugins I use.

    Anyway, I love the plugin and haven’t found a better one.

  277. @Okoth:

    You’re welcome to send me a list, although I doubt I’ll have the time to test all the plugins (unless the list is real short). If possible, could you confirm the issue when all your other plugins are disabled? Also, it would be incredibly helpful if you were then to re-enable them one-by-one to see which one(s) cause the issue.

  278. Pingback: Looking for a plugin - Bloggeries Blog Forum

  279. I’m using the Maintenance Mode plugin and would like to add a countdown to announce when my website will go live. I can get the timer to display (including accurate time), but the countdown doesn’t work. Javascript Countdown has been enabled. Any chance this has something to do with the footer as referenced in the 2/11/08 comments by Andrew? Is there a workaround I could use?

  280. Another observation…if this thing is counting down to midnight on the day in question, why would it presently say the countdown to July 1 is 21 days, 1 hour, 29 minutes? It’s 11:30 where I am now. The plug in is set for -6 for the Central time zone.

  281. If you select to show days only the countdown time does not work correctly anymore. For example:

    Tue, 08 Sep 2009 04:00:00 -400 shows as 27 days.


  282. @Rob Becker:

    I haven’t had time to check out how Maintenance Mode works, however I suspect that it’s not calling wp_head() and/or wp_footer().

    If you place those calls at the beginning and end of whatever the template file is, you should be good to go. Let me know how it works out (or if it doesn’t).

  283. @Rob Becker:

    Check the timezone used in the “Event Date” and make sure that it is also -0600.

    Also, Central time zone is now at -5 GMT due to daylight saving.

  284. I thought it was strange. It worked correctly before I upgraded. Hopefully you will be able to track down the bug. Let me know if you need any assistance.

  285. Andrew, thanks for the nice plugin. I have noticed a small bug, if you disable the “week” for the timer display, it shows the incorrect number of says eg:

    “some event in 2 days, 5 hours 34 minutes”

    but with “week” enabled, the output is correct:

    “some event in 4 weeks, 2 days, 5 hours 34 minutes”

    I had assumed if you turn “week” off, the number of days would be adjusted to display the actual number of days until the event.

  286. @darrin Hodgesd:

    This is the same bug that Mike noted earlier and it affects the months, weeks, days, hours, and minutes settings. I’m working on patch and it should be done shortly, I just haven’t had a lot of time lately to get it finished.

  287. I’m testing my site locally and when I activate your plugin i get the following error code
    Parse error: syntax error, unexpected $end in C:\wamp\www\Fire-fest\wp-content\plugins\countdown-timer\afdn_countdownTimer.php on line 964

    Can you help me out with this? I think it is a really nice plugin, but this is not that fun =(

    I run PHP 5.2.6 with SQL 5.0.51b (wamp), using Firefox and IE7

    Thanks ^^

  288. jup, just downloaded the plugin at the top of the page..
    so it is the latest version, and i don’t know what’s wrong

  289. Still have the error… Deactivated all my plugins and then tried to activate the countdown plugin (the newest version 2.2.1) and i still get a fatal error..
    Parse error: syntax error, unexpected $end in C:\wamp\www\Fire-fest\wp-content\plugins\countdown-timer\afdn_countdownTimer.php on line 970

    PHP version 5.2.6, MySQL version 5.0.51b
    testing site with FF and IE7

    Thanks ^^

  290. A very nice plugin and we will use it for the new website for our games festival.
    There is a little mistranslation in the german version:
    It says “event in 145 Tag” but ist has to be “event in 145 Tagen”

  291. Using Countdown Timer v2.2.1 on WP 2.5.1

    Added a Widget for counting down on my sidebar, works perfectly in Firefox. But when I tried to load it in IE, it failed!

  292. I, too, am having problems with Internet Explorer (version 6 and 7). I’m using version 2.2.1 of the plug-in and version 2.5.1 of WordPress.

    Everything works as it should in Safari, FireFox, etc where the Countdown sidebar widget happily shows the remaining time to an event. However, in IE the presence of the Countdown sidebar widget causes page loading to fail part way through and IE’s “This page could not be displayed” message to be shown.

    Taking the Countdown sidebar widget off the site (without needing to deactivate the plug-in) seems to solve the problem.

    I had the problem with version 2.2 of the plug-in and updated earlier today, but it failed to solve the issue.

    Hope this information is useful.

  293. Oh, I found the disable javascript countdown option. Disabling it allows me to load the site in IE, but the countdown is all wrong. From a 13 days event, it changes to -1 year, months, day.

    I forgot what the months and days were, but it’s all totally wrong.

  294. @Andrew:

    If I disable the javascript countdown, I get the same result as Jawker: the countdown is no longer correct.

    I haven’t got access to an IE machine at the moment, so don’t know if it allows me to successfully load the page in IE.

  295. Just managed to get a moment on a machine with IE 6 and with the javascript disabled the page will load. But, as before, the countdown is incorrect.

  296. @Jawker, @Wolfie:

    What’s the URL of the site you have the Countdown Timer on? If it’s not public, can you email me a copy of the HTML code that’s generated on the homepage (or where ever you have the Countdown Timer)?

  297. @Andrew
    I had taken the Countdown Timer off the site, but I’ve put it back up at I’ve disabled the javascript so that it doesn’t break pages in IE, so if you need that re-enabled for testing, etc, let me know.

    The timer is currently displaying -3 months, 1 week, 3 days, etc, but it should be displaying 2 months, 2 weeks, 5 days, etc. Note that as well as not being the right length of time, the non-javascript display also gains a minus sign.

  298. @Wolfie:

    Okay thanks, you can disable it if you’d like now. I took a look and don’t see any issues on that end. When you have the javascript activated, what does the countdown timer read out as? Can you confirm that your server clock is correct? Have you tried running the Countdown Timer Debug Utility?

  299. It works perfect in Firefox if the javascript is activated, but when loading it in IE, it fails.

    Server clock is definitely correct over here, I will try running the debug utility sometime this week.

  300. Hi, I downloaded your countdown plugin today V2.2.1 which is great but I’m having a little problem with it. Using it on WP 2.5.1 all is fine except it appears to be confussed with the time and so far only about one particular date – 27 November 2008. I can add any other date and it will calculate it correctly but not the 27 November 2008 which is USA’s Thanks Giving. It thinks it is 3818 days etc etc to go. Hope that you can fix.

  301. Well, I think it’s safe to say that there’s obviously something funky going on.

    So let’s do this: from a base install of the plugin can you guys give me step by step directions to reproduce this problem? (Note: disabling the plugin, running the Debug Utility, and then re-enabling the plugin will get you to a base position)

    I’m looking for something like:
    Add event “Thanksgiving” at “27 November 2008 12pm” with Display “Time since” disabled.
    Set Countdown Time Display:
    Year: Yes
    Month: Yes
    Week: No
    Add widget to sidebar using XYZ Theme.

    You don’t need to record every value, just the ones changed from the default. I’ll try to reproduce them on my end and see what the heck is going on. Also, if you don’t feel comfortable posting details to the comments, feel free to email me.

  302. Hi Andrew ๐Ÿ™‚

    I’m using v 2.2.1 on WP 2.5.1

    And I’m not having as much of a problem as everyone else – it’s just that the countdowns shown on my blog page are exactly one day higher than the one shown on the config page.

    e.g. it shows that my holiday is in 8 days 10 hrs 33 mins when at the bottom of the wp-admin/edit.php?page=afdn_countdownTimer.php page where it gives you the “Example Display” it’s 7 days 10 hrs 33 mins.

    Any hints? hmm

    Thanks for a cool plugin ๐Ÿ™‚

  303. Hi Andrew

    Confussed on how this bug thing to work. Where do I get all this information you want.

    I put the ferg*.php in the plugin directory after I had deactivated the countdown plugin in wp panel plugins. Then activated ferg*.php in wp panel plugins. I red sign came up then I activated it. Nothing changed so I deactivated it. Put the countdown back and nothing has changed at all. The input is still there and I’m not sure where this information is that you need.

    Note that today the countdown has a different bug. It randomly cuts off information after the word ‘in’. So some lines have ‘in 234 days’ while other don’t. Refreshing the page changes the randomness of the lines information missing. Weird. Help! Cheers

  304. hello Andrew.

    I just installed the plugin with the italian tranlations, and I noted that until I don’t deactivate the javascript countdown, I get the countdown missing the last character. For example:

    tra 1 mese,8 giorni


    tra 1 mese,8 giorn

    This is a costant behaviour, if I show only the months, I get “mes” instead of “mesi” and so on.

  305. Andrew,

    Can you tell me where in the code I can remove the “in” that is in the output? I am trying to get output like:

    My birthday: 25 days….

    rather than:

    My birthday: in 25 days…..

    Thanks for a great plug-in.

  306. Well to answer my own question, here’s how I did it (using version 2.2.3).

    I found and replaced all instances of “in %s” (on lines 493, 495, and 899) with “%s”.

  307. Great – the bug is fixed with your new version. Thanks for that.

    Can you tell me where to change the indent (and the style formating) for the ‘Event Title’ name. I can change the format for the second line that shows the ‘in 00 weeks, days etc’ in the ‘Display Format Options’.

  308. andrew – great work… is there a way to show the countdown timer on a page or in a blog versus on the sidebar? Does that make sense?

  309. Pingback: Add Count Down on WordPress | Moui.Net - Written from heart

  310. Hello from Frankionia, Germany!

    Thank you for this plugin! BUT, I try to set each item (month, day, hours,…) one below the other but the only thing I always get is a “fatal error”.

    I read all the comments in here, but I find nothing… please help! ๐Ÿ™‚

  311. Pingback: Blog-abfertigung » Blog Archiv » Countdown-Plugin fรผr Wordpress 2.3

  312. Sorry i am stupid but i dont now who!

    The languagefile Swedish translation how can i activate so i can have that.

    pleas help me

  313. I’ve used one-time events on post and the countdown timer works, but off 5 weeks (showing 9 weeks instead of 5 weeks). Weird part is that the timer is correct for only 2 seconds and revert to its incorrect timing.

    I’ve also attempted as Sidebar widget. Again, timer works but showing incorrect timing.

    Any info on this? Date I’ve implemented as “30-09-2008” or “30 september 2008”

  314. When will the Countdown Timer be available for WordPress 2.6.1. I am using the timer on WP 2.5.1 but I don’t want to fall behind in the WP upgrades.
    If you have a cat photo or a comment I would love to hear from you.

    Great Plugin! Thanks

  315. When will the Countdown Timer be available for WordPress 2.6.1.
    Now you have this error

    Fatal error: Cannot use string offset as an array in wp-content/plugins/countdown-timer/afdn_countdownTimer.php on line 104


  316. Hallo again…
    i have upgrade 2.6.1
    then i have this problem
    Cannot use string offset as an array in countdown-timer/afdn_countdownTimer.php on line 104.
    some tip

  317. Hi Andrew,

    Is it possible to use the countdown timer outside The Loop, for instance, in a simple text widget (for arbitrary text or HTML) in the sidebar?

    Thanks in advance!


  318. @Martijn:

    If you’re trying to us it in the sidebar, there is already a widget included.

    You can use it outside the loop, however you must include it as PHP code at that point. Please refer to the instruction notes about how to include it in sidebar.php. Also note that you can’t include PHP code directly within a text widget.

    If you can give me some details about what you’re trying to accomplish, I may be able to be more helpful.

  319. Hi Andrew,

    Thank you for your answer. Didn’t quite know that the so-called text widgets couldn’t contain PHP. I’ll indeed use your widget then!

  320. Hi there, great plugin. I’m trying to limit the number of countdowns on my template to 1 at a time using the code:

    but its not working, it displays all the countdowns at once.

    If I use the widget on the sidebar it works fine, but not on the header template, for instance.

  321. @Osa:

    Can you please repost your comment with the following information:

    Code: To include code, bracket it with [code language=”php”] and [/code].
    Example: [code language=”php”] echo “Hello, World!”; [/code]

    Plugin Help: If your requesting help about a plugin, please provide as much information as possible. At the very least, include your WordPress Version and the Plugin Version!

  322. Hi Andrew,

    Thanks for a great Plugin. I have a usage question:

    Can i install multiple instances of the plugin. I want to do this because i wanted 2 different countdown widgets (Sidebar). One for my upcoming posts and one for my upcoming events. Is this possible?

    Thanks in Advance

  323. Ups sorry andrew.

    Ok, as said above I cant limit do just 1 countdowns when using the code in a template outside the widget environment.

    I’m using wordpress 2.6.2 and Plugin Version 2.2.4

    You can see the problem live at top right

  324. @Kalyan Verma:

    Unfortunately, you can’t just install a second instance of the plugin. If you did, you’d be running two versions of the exact same code trying to do the same thing, which is bad.

    If you wanted to, you could find and replace all instances of the word “fergcorp” and “afdn” with something else (“fergcorp1” and “afdn1”, for example) and that should prevent any collisions (you’ll need need to do it for filenames as well as text within the files). You’ll also need to find and replace “Countdown Widget” with something such as “Countdown Widget1”.

    I’ve tested that procedure with Countdown Timer 2.2.4 and WordPress 2.6.2.

  325. I hava a problem

    Warning: Wrong parameter count for stripslashes() in /www/ on line 426

    Sito definitivamente operativo:
    tra 13 giorni, 2 ore, 20 minuti, 53 secondicursor:pointer; border-bottom:1px black dashed

    my site is Help me please:)

  326. Hi andrew.
    First of all I must say I’m amateur in programming .
    I’m really interested in using the countdown inside posts (not in the sidebar), but I can’t get it to work. I enable the loop & I put this in a post:

    !–afdn_countdownTimer_single(Fri, 17 Apr 2009 12:45:00 -300)–
    (I take away the )

    But nothing shows. I know im doing something wrong so any help will be thanked

    -Wordpress version 2.6 (I belive)
    -Countdown Version 2.2.4

  327. I also have the same error as MrZANO.

    Warning: Wrong parameter count for stripslashes() in /home/*username*/public_html/wp-content/plugins/countdown-timer/afdn_countdownTimer.php on line 426

  328. @Francois:

    When I tried it, it worked fine. One thing you may want to check is to make sure that “Enable CountdownTimer within The Loop” is set to “Yes”.

    Also here’s the exact string I used:

    <!--afdn_countdownTimer_single("Fri, 17 Apr 2009 12:45:00 -300")-->

    Let me know if that still doesn’t work.

  329. Andrew, sorry to bother you again.
    I have one more questions:

    -Is it possible to configure a Message to be shown for “x” amount of time, once the countdown reach zero?

    The idea is to post about a shows that stars for instance at 12, and ends at 13 hs. So when the countdown reachs zero at 12hs, instead of dissapearing , it display a message like “live now” until 13 hs.


  330. @Francois:

    Tick “Display ‘Time Since'” for the event you want to to keep displaying. Then, under the ‘Countdown Time Display’ option panel, set the “How long the timer remain visable if “Display ‘Time Since'” is ticked” to 3600. That will keep the timer displayed for one hour after the event has passed.

  331. Thanx for the quick response!
    I promisse that this is the last time I bother you

    1) mmm I’ve try that and it works excelent for the events in the sidebar, but I can’t solve it when it comes to the countdown within post (using afdn_countdownTimer_single). Is there a way of doing the same also with this function?

    2) Also, I been trying to change the display of the count down:
    * Change: hour/s —> into: H
    * Change: minute/s —> into: ‘ (or M)
    * Change: second/s —> into: ” (or S)

    For instance; from:
    – in , XX hours, XX minutes, XX seconds ;
    – in XX H, XX ‘, XX ” ; or
    – in XX H, XX M, XX S

    My wp-config.php —> (‘WPLANG’, ‘es_ES’);
    I’ve been editing this .po file without any luck in getting it right
    Is there a way of doing this?

    Thanx again and sorry about the trouble

  332. @Francois:

    Questions are always welcome.

    1) Using afdn_countdownTimer_single is supposed to allow for this, but there’s a small bug. I’ve fixed if for the next major release, in the mean time you can search and replace: ‘true’ with true (i.e. make sure all instances of true don’t have quotes around them. You should find only two cases of this.

    2) Ah, the wonderful world of PO and MO files. Making a translation file is actually a two part processes. The PO is a human readable file that is read by a PO editor (such as poEdit). After you’ve translated all the phrases, you compile the PO file into a MO file. The MO file is the machine readable file that actually provides the translation. Does that help?

  333. Dear Andrew. Thanx for all the help you gave me.
    With your directions I could solve it all.
    Love your plugin!

    So thanx very much for everything!!!!

  334. Hi there, very nice plugin. But I still have a problem with the wrong count of days left. I run WP 2.6.1 and TImer 2.2.5. The chosen event is on Oct 5, 2009. When it were more than 365 days, the left days were counted correctly. f.e. it were 370 days – the timer showed 370 days. Now, the event is sooner than 365 days, it’s wrong. Today it has to be 362 days left, but the timer says 358 days left. 4 days are missing since 365 was passed.

    Can you help? Thanx and kind regards

  335. Hi Andrew. This plugin is great, but I cant seem to make it work using the “maximum number of timers shown ” besides widget

    I’m using afdn_countdownTimer(1)

    inside my template to call just one timer at a time, but nothing shows. If I remove the number all of them show at once.

    I'm using version 2.2.5 with wordpress 2.6.2

    I have a test for you to take a look at the bottom of the sidebar of

    Widget + afdn_countdownTimer() + afdn_countdownTimer(1)

  336. I’ve tried removing entire wordpress installation and starting from scratch. This plugin works in the sidebar, but not in the posts.

    I want an active, running timer in all blog posts. All timers must have different timers. I tried installing the plugin, then using this code:

    <!--afdn_countdownTimer_single("Fri, 17 Apr 2009 12:45:00 -300")-->

    But, WordPress doesn’t recognize and dumps entire code, in the blog post.

    Please guide me how to make this plugin work in posts.

  337. I’ve tried removing entire wordpress installation and starting from scratch. This plugin works in the sidebar, but not in the posts.

    I want an active, running timer in all blog posts. All timers must have different timers. I tried installing the plugin, then using this code:

    <!--afdn_countdownTimer_single("Fri, 17 Apr 2009 12:45:00 -300")-->

    But, WordPress doesn’t recognize and dumps entire code, in the blog post.

    Please guide me how to make this plugin work in posts.

    Using WordPress: 2.6.2 and Countdown Timer: 2.2.5

  338. @osa:

    I just got back into town and caught up with life. That’s actually a lie, I’m never caught up with life; but I’m caught up enough to take a look. Can you put back up the example you wanted to show me at the bottom of your website?

  339. Hi Andrew. The example is back .
    As you can see the only problem is when I set afdn_countdownTimer(1)
    nothing shows. I doesn't matter where I put it (header, sidebar...)

    Thanks for taking a look,

  340. @osa:

    There’s a bit of a discrepancy between the documentation and the actual code. It should work as described, however I flipped two variables.

    Short term fix:

    afdn_countdownTimer("echo", 1)

    Long term fix:
    The next version will use the format as documented. That is, you’ll be able to pass



    afdn_countdownTimer(1, "echo")
  341. would like to make a japanese translation of your widget,
    could you point me in the right direction?
    you can use the translations I make for your next revision ๐Ÿ™‚

  342. Pingback: seo?? » Blog Archive » Wordpress????

  343. Using WP 2.6.3 and CDT 2.2.5

    I am trying to see if there is a way to change or set the color, size or other attributes for the font in the display of the plug-in.

    Is this possible somewhere in the afdn_countdownTimer.php file or the main WordPress CSS file?


  344. Pingback: 72?47?wordpress????

  345. @CB:

    I’ve slowly been working on a new release that will work with WordPress 2.7. It’s not quite finished yet, but I’m getting close. My goal is to have a release before WP2.7 is released.

  346. Pingback: ??.com » wordpress????

  347. @everyone:

    Good news everybody! I’ve managed to get my act together and assemble another release of Countdown Timer. It’s not out just yet, but it will be soon. A couple things to mention: Countdown Timer 2.3 will be compatible with WP 2.6 and 2.7 only. Support for WP2.5 has been dropped. Also, the language files need to be updated. If you would like to submit a new language translation or update an existing one, please check out one of the following links:

  348. Pingback: WP-Plugins | BlogFrosch

  349. Hi, i’ve just upgrade countdowntimer ifor wordpress 2.7.

    There is a pb with all my date for 2009, i get this:

    Fatal error: Call to undefined function days_in_month() in /home/serie/domains/*******.com/public_html/wp-content/plugins/countdown-timer/afdn_countdownTimer.php on line 633

    and i can’t see the save button.

    Thanks for your help

  350. @CB:

    Wow. I really screwed up on that one. I thought I had all my debug statements out…looks like I missed on. I’ve release an update (2.3.1) that will fix that.

    My apologies to everyone!

  351. Pingback: ?????? ??? ???? | Naghies

  352. Pingback:

  353. Pingback: WeblogToolsCollection Espaรฑol » Blog Archive » Novedades Plugins de WordPress 20/11

  354. Pingback: Latest Wordpress plugins -

  355. Pingback: WordPress Plugin Releases for 11/20 ยป All About Technologies

  356. Hi! I’m wondering if it’s possible to change “XX years XX months AGO” to “XX years XX months OLD”? I’d like to use it to track age instead of using it to track something that has since passed.
    Being the idiot I am, I tried changing where it says “ago” to “age” in the php file but that just returned a “null”. I’ve since changed it back of course! THANKS!

  357. Thank you for this countdown!

    May I have a question?

    I am living in Hungary, where the time is GMT+1. The server, where I am hosting is in the USA (Dreamhost).
    How can I specify the time in a way to reflect MY LOCAL TIME?

    Thanks, again,


  358. Hello, I am running wp 2.3.1 . I am trying to insert

    <!--afdn_countdownTimer_single("31 january 2009")--> 

    into a post from the ‘code’ view. but nothing happens.. what is wrong? please help me. I am have installed plugins v2.0 & have also tested by installing the latest pluging (v2.3) but the result is same.

  359. @mehedi:

    When you say “I am running wp 2.3.1″, do you mean you are running WordPress 2.3.1 or Countdown Timer 2.3.1?

    Also, the method you’re using for inserting a specific date into post is now depreciated (although it should still work). Have you tried using the shortcode?

    [fergcorp_cdt_single date=”ENTER_DATE_HERE”]

  360. @Rusalki:

    There is currently no official way to change it. If you want to hack it, replace all instances of “%s ago” with “%s old”. Note, don’t just replace “ago” with “old” since that will mess up the javascript, which is what I suspect happened to you the first time. Let me know how that goes.

  361. @Andrew Ferguson – Thank you very much for your reply. I am running the wordpress version 2.3.1 as far as I know wordpress 2.3.1 dose not have support for shortcode so I have installed the older version (v.2.0) of the plugin. But nothing happens when I insert like this into a post.

    <!--afdn_countdownTimer_single("31 january 2009")-->

    Please help me I am in a big trouble. ๐Ÿ™

  362. @mehedi:

    In the configuration section for Countdown Timer, is “Enable CountdownTimer within The Loop?” set to “Yes”?

    Also, if you look at the code generated for the post in question, do you see <!–afdn_countdownTimer_single(“31 january 2009”)–> in the HTML?

    Well, I would recommend that you upgrade to the latest available version of WordPress.

  363. Does the function_exists(‘fergcorp_countdownTimer’)?fergcorp_countdownTimer():NULL; call allow for declaring a max number of events to display? I know that the shortcodes within a page/post can do this and I think even the widget can, correct? However, based on where I have the countdown (check out to see), I can’t use the widget. We would like to be able to go and queue up a bunch of events, but only display one at a time in the countdown. Thanks.

  364. After install I got this Error:

    Warning: Invalid argument supplied for foreach() in /www/htdocs/w0095be3/wp-content/plugins/countdown-timer/afdn_countdownTimer.php on line 111

  365. Great plugin! I am using WordPress 2.6 and the most recent version of Countdown Timer.

    Is it possible to remove the “in” in the countdown text. Rather than saying “in 9 days, 10 hours”, I’d rather it just say “9 days, 10 hours”.


  366. Thanks for the great plugin!

    I’m having problems with version 2.3.1. I’m running WP 2.7, PHP 5.2.6.

    With IE 7, I get the error message, “Internet Explorer cannot open the Internet site Operation aborted.” When I click “OK,” my page is replaced by a “page cannot be displayed” error. Of course it works fine under Firefox, Opera and Safari. I can’t afford to ignore this because a significant portion of my readers use IE 7.

    After a lot of digging and trying things out, I’ve narrowed the problem to Countdown. I’ve fallen back to version 2.2.3, which works fine on my site but not so well with the WP 2.7 admin panels.

    Any ideas?

      1. Javascripts not playing nicely together, I suspect.

        I moved the call to wp_footer() to be the last thing in my footer.php file and that did the trick.

        wp_footer() had been above above the call to the google analytics script and some other things.

        While I was at it, I moved wp_head() to the end of the header, and that fixed another problem I was having with a different plugin (not yours).

  367. Pingback: Blogs » Top 1000 WordPress Plugin Authors

  368. Pingback: 4?????? ??????? » Blog Archive » ?????? ??? ??????

  369. Great plugin, and fantastic work! One question for you, Andrew: If I have multiple entries to count down to, is there a way I can display just one of them of my choice? I see the () in the php string, and I can get just the FIRST one to appear, or BOTH, but not just the SECOND. Anything I can do there?

    1. @Josh

      There is not a way to display a particular event from the group. The () in the PHP string allows you to set the maximum number of events as ordered by when the events occur. Can you tell me more about why you want to display only the second event?

      1. Wow; quick response! Basically, I’d like to be able to count down to multiple events in various places on the page. See the sidebar of in-progress . I’m counting down to an event — what if I wanted to count down to another elsewhere?

        1. So, there’s a function that I should probably document better. It’s called: fergcorp_countdownTimer_single and accepts one argument, the date you want to countdown to.

          You can call it like so:

          <?php echo function_exists('fergcorp_countdownTimer_single')?fergcorp_countdownTimer_single("31 Jan 2009 15:30"):NULL; ?>

          Does that help?

          1/14/2009: Updated to correct code.

          1. I knew there would be something like that! It *almost* helps perfectly! I copied your code verbatim, and it seems to execute, but it doesn’t display on the page. (It executes because, when I introduce a typo, I get a parsing error, but when it’s accurate, I get no return/display). I found the function on your afdn_countdowntimer.php file, and it seems to be pretty black-and-white, but I just don’t see any result returned on the page. For reference, this is the line of code that I’m using:

            Is there something I’m missing? It’s running inside of a ‘PHP widget,’ so I don’t need to tag it as code, and I had your full call working fine in there….

          2. @Josh

            The code sample you sent didn’t come through; but I suspect that you need to echo the results. I updated my previous comments to provide the correct code (note the “echo” before the “function_exists” check).

  370. Great Plugin! I am noticing a potential issue with a countdown that takes place on March 1. The countdown displays 47 days for March 1, but 43 days if I change it to February 28. I am using the latest version of the timer, and WordPress 2.6. Thanks for any advice/assistance you can provide!

    1. I’m having a similar problem. I have set the event date to 14 March at 11:50am. The countdown is showing 55 days, 23 hours as of now, but that is wrong. It should be 53 days. I’m in SAST (GMT+2) timezone.

      1. Has anyone figured out a resolution to the counting issue? I’ve tried a few things but have very limited code knowledge. Thanks!

        1. @Chris

          I know what the issue is (it has to do with the way I count months). I’m currently working on fix for it, but I’m also working on graduating this semester…so it’s not my highest priority at the moment.

          1. Andrew – Best of luck with school/graduation! That is certainly more important than the plugin/fix. I’m in school now myself, so I understand where you are coming from!

  371. Pingback: Neues Plugin und HTML Probleme

  372. Pingback: ??wordpress??????

      1. I am configuriong the start and end dates in single date mode in the widget and it says:
        “Give a start date, an end date, or both. (Use -600 for 600BC.)

        Start date (month-day-year):”
        and then has some drop down menus to pick dates.
        I’d like it to be day-month-year rather than month-day-year.
        That is how we do it in Australia.

          1. D’oh…
            You are right… Yours wouldn’t activate in WPMU and I changed to Adam Brown’s KB Countdown Widget…
            Sorry… I am a fool…


  373. Pingback: 25 Random Things About Me | Andrew Ferguson dot NET

  374. Pingback: Kick’em 2 the Curb » Thank a Plugin Developer Day…I’m a little late!

  375. Pingback: WP-Plugins | BlogFrosch

  376. Hi There

    I installed the plug in, but I can’t get it to work. I’m using the latest version of WP – but not using widgets. I copied the code into my side bar that you give at the top of the page, but there is no option for setting a new countdown. It just indicates there is no countdown.

    I’m probaby missing something very silly, but would appreciate your help.


        1. Ok I have got my first counter running. How can I get it to pick up he style I am using? It is black text at the moment.

          I’m NOT using widgets, I have inserted the code into my sidebar.


          1. Right I see where, but struggling to see how.

            I have a css for all my formatting and want to apply format “body” to my timer including it’s title. The title I would like bold.

            Is it possible you could explain what I should have on the format sections please. I know once I’ve seen an example I’ll be fine.

            Thanks again Kev

          2. Thanks Andrew – got that. How can I make the title and the counter:
            color: #202020; font-size: 12px;

            Can I use html tags for font colour? If so where would it go?

            I appreciate your support.


    1. Hi.

      Sorry for my bad english.
      Im using your Plugin and it is great. Today I have installed the update and after that it will not count down.
      If you look to my page you see at the right a counter.
      With the old version the counter counts down. Now I must reload the page to see that something changed.
      Is this a bug, or have I make something wrong ?

      Best regards


        1. Thank you for the fast answer.

          On both files the permissions are set to “644”.
          So users can read the files.

          I have the problem since I have updatet to V2.3.5.
          I made the Update with the WordPress “automatic update” – Fuction. Perhaps thats the reason ?


          1. @Michael

            It might be an inherited issue then from the folder. Two things I’d try. First, see if changing the permissions to 655 helps at all. If not, make sure the permissions of the folder are 644.

  377. Pingback: Countdown Timer v2.3.5 | Andrew Ferguson dot NET

  378. Thanks a lot.
    I have changed the permissions of the folder to 755. Now it works. I have no idea why it hadn’t worked after the update. I have nothing changed

  379. Getting an error and don’t really know what to do about it. It’s been there for a while and I keep thinking it might go away with plugin updates. But it hasn’t yet.

    Warning: Invalid argument supplied for foreach() in /nfs/c02/h02/mnt/23933/domains/ on line 111

    Running WP 2.7.0 and Countdown Timer 2.3.5. I’m trying to use it as a widget.

    1. @Joel

      Also, have you tried running the debug tool? If not, I’d try that. The Debug Utility is available above. Deactivate Countdown Timer, run the Debug Utility, and then reactivate Countdown Timer.

  380. @Kevin Ball

    You have the right idea with using color: #202020; font-size: 12px;

    For the title, you’ll want to tuck that CSS in the <strong> tag, like so:

    <strong style="color: #202020; font-size: 12px;">

    To style the countdown, just append color: #202020; font-size: 12px; to the end of the Display Format Options setting.

    On a side note, I’ll be implementing better CSS support in the next release.

    1. Hi Andrew

      I have tried that code:


      <strong style="color: #202020; font-size: 12px;">Blues v Wolves</strong>


      cursor:pointer; border-bottom:1px black dashed color: #202020; font-size: 12px;

      I suspect I should put font somewhere – with the code above my counter is still showing as black font (although I do have a bold title which is good).


  381. Pingback: And it continues | Hemma hos oss

  382. Hello, Andrew! Great plugin, but… My site in russian languauge and your plugin comes with translation in it, but, like i understand, there’s two files needed to properly translation *.po & *.mo. So in the instalation folder only afdn_countdownTimer-ru_RU.po file and there’s no – result no translation :(((. Any ideas how to fix? Thanx!!!

    1. @mttrnv

      Yea, my bad. I just somehow managed to not get that particular file in. I’ve updated both the trunk and the 2.3.5 release, so download either one and you should be set.

  383. Hi!
    I’ ve just translated your plugin to my language (Croatian – Hrvatski) using link from WP Plugins info. Can i get it somehow ASAP or I need to wait your next release ?
    Btw, can you name it

  384. Hi great plugin. I’m using wordpress 2.7.1 and Countdown timer 2.3.5. It works great in Firefox but the Display Style doesnt seem to work in IE6.
    I have Display style as cursor:pointer; border-bottom:1px black; color: #b11757 and the countdown part shows up as red in ffx but not in IE6.

    Also the “onHover Time Format” isnt working in IE6.

    Also I have Display Format Suffix set as


    to add an extra line between multiple countdowns and once again, this isnt working in IE6

    1. I don’t have a copy of IE6 available to test on. When I tried in IE7 and IE8, it seemed to be working fine. So I suspect that it’s something funky about how IE6 handles the HTML, which would make sense since IE6 was notorious for how poorly it followed standards.

      In short, it seems to be a IE6 issue. Why don’t you upgrade to IE7?

      1. oh trust me, i hate IE6 just as much as any other developer, but the site I’m developing right now will be access by a lot of older people and I have a feeling they still use IE6. I use IE7 and FFX myself and only noticed the problem when accessing this site via my work laptop. It’s no big deal I guess. I’ll see if I can edit the php code to throw in some extra div tags and adding those tags to style.css

  385. Help!

    All I want to do is to have 3 independent counters on 3 separate posts. But I need them to be simple minute counters. So one will count down from 10 minutes, 1 from 5, 1 from 3, etc. What is the syntax to do this? Please help. Thanks.


  386. Pingback: Next Up – Plugins | bRight & Early WordPress Test Blog

  387. Love the countdown timer, thank you for your work. I need to be able to wrap the line a little differently than it does as is. Can I get the word “in” off the front end of the date/time line?

  388. Greeat plugin!

    Would like though more customizing options via CSS. Like a lot of span in the output. That way you can visually create virtually everything you want – ie. hide “in”, make days, minutes and seconds smaller and the digits bigger.

  389. my wordpress version is 2.8 and plugin used is countdown timer 2.3.5 now i am getting the counter running problem is that i want to totally change the look and feel of how it is showing the counter something like days in bigger font and below showing day then hrs in bit smaller case and hr below hour so can u please guide me how do i change the design of the counter output

    1. The lack of span (or other HTML tags) makes it impossible to do that kind of customization in your CSS. Just read my comment just before yours.

  390. The count down works on the plugin page (at the bottom of the page) in back end WordPress, but not on the public page. It suddenly stopped counting down yesterday – and I did only make changes on the plugin page.
    I am using WP v2.7.1 and Countdown Timer v2.3.5.
    Any idea why the timer stopped working?
    The site:

    1. BTW I have tried disable the plugin, FTP’ed the plugin again to the server, enabled the plugin, but without any changes.

    2. @Jacob V:

      Sorry I didn’t get back to you sooner, I was on vacation this entire summer and am now just crawling back to life.

      To answer your question, I’m not entire sure. My initial best first guess would be an issue with wp_footer in your theme file.

  391. Great plugin!
    I’m running the PI with WP 2.8 without any problems.

    Is it possible to set a counter fe. for “EVERY monday 8pm”?
    Only the next monday should be active/displayed and if it counts to zero
    the next monday (with 7 days…) should be displayed.

    Have a nice day,

    1. @Martin:

      Sort of. If you use an individual countdown timer on a post or page (using the [fergcorp_cdt_single date=”ENTER_DATE_HERE”] shortcode), you could set date to “Next Monday at 8pm”, which PHP’s should be able to parse (a la the strtotime function).

  392. i want to change the format of the counter which is displaying.How & where i will do it? Plsase reply me soon.Its very urgent.

  393. I have a feature request. I need to be able to set a length for each event, and display whether the event is going on now.

    Example: Event starts at 1pm and last for 2 hours, ending at 3pm. From 1pm to 3pm I want the widget to say something like “Event name: Going on Now!”.

    Think you have the time to do that soon?

  394. Hi andrew, I’m using your plugin on with spanish mo and po files, everytinhg works really fine, but when I put mouse over the event I got english date on the title tag.

    How can I change to spanish?

    I searched for date format on your code but I wasn’t able to found it.

    Thanks man!

  395. Great widget, Andrew. However, I’m sensing an issue with Daylight Savings Time… If I have two timers that count to midnight on two dates before and after the change (we fall back on November 1, 2009 at 1 AM) the timers for after the change are not correct. Here in EDT we will go from UTC -4 before 11/1 to UTC -5 after 11/1. If I correct for this in my event dates, then my timer is correct but my hover time is wrong. (It now says 1 AM instead of 12 AM).

    1. @Josh:

      The Daylight Saving issue has always been a bit problematic. Part of the issue is that WordPress itself doesn’t even support Daylight Saving Time. I’ll look into the issue though and see what I can find.

  396. Hey there, thanks for the plugin, but I was just wondering if there would be a way to edit it to make it a time since I last updated a category from my site? I have the function to get the time it was last updated but how do I implement that to get the time since it was last updated..?

    I hope you can help,

  397. Great idea! The version I’m using (2.3.5) unfortunately crashes WordPress 2.8.4 pages when the reader tries to view them in IE6 or IE7 (it works fine if the viewer is using IE8 or any of the Mac browsers).

    Do you plan to release an update that accommodates WP 2.8.4?



    1. @Dave

      It should work with 2.8.4. My site works fine with IE6. I also haven’t gotten any reports from other uses. Can you confirm that it’s this plugin for sure that’s causing the crash?

      1. Yes; everything worked fine when I removed it from my sidebar. To confirm, none of my customers could access the site when it was installed and they were using IE6 or IE7. Again, all my Mac and IE8 customers did fine, but obviously I had to remove the timer…bummer, because it looks great and really helps with sales!


  398. There seems to be something in my theme which makes each timer appear as a new “headline” (not sure what I should call it), with an arched white top-left corner. It makes the timer’s first word a bit difficult to read.

    I have all the default settings of the plugin, except the black dotted line.

    I think it’s the “Title Suffix ” which is causing it, probably because of some CSS setting of br-usage. But I need the timer to be on another line than the actual event-info, else it will look strange.

    It also seems that, since there’s no url in the second timer, the list-tag isn’t working for the second timer.

    What do you think I can do to fix it?

  399. Hi,
    Is there a way to count the time since the page has loaded? or perhaps add a start button to count the time starting from 0 to like 60 seconds?

  400. I love this plugin. Thanks so much for creating it.

    I’m seeing a problem where if you change the WordPress permalink settings to anything other than default, the Javascript countdown fails to work (i.e., the remaining time shows up fine, but it’s not decrementing). I believe that wp_enqueue_script() creates a URI with a question mark in it, and the rewrite rules in .htaccess screw up that path.

    I haven’t put the time in to understand the issues around it yet, but I figured I’d give you the heads-up if you happen to resolve it before I do.

    Thanks again!

    1. @Duc

      I use the timer with non-default settings and it works just fine. A couple of questions:

      1. Is the script being requested in the final HTML output?
      2. Can you access the script directly from your browser?

      1. Hi,
        Sure, here is an example of the amount of data that needs to be stored for each event.

        “TBEC’s next event will be held on the 25th of October 2009 at Hockcliffe, Leighton Buzzard, Beds. The event is based on 2+2 hours, starting at 10.30am and finishing around 4pm. To enter the event please complete the entry form available in the events area.

        All entry forms (Regs), will be available for download from the 28th Sept.”

        For an aesthetic point I think the best solution would be to only show this information for the next event but that might be a little more complicated…

        What are your thoughts?

  401. Pingback: Spicale » Wordpress – welches Plugin? «

  402. Ok. For us beginners here. I have the timer download, activated, and over in my widget bar. Then went over my “tools”/countdown timer page on admin page, didn’t see a place to enter a date. when over to the Countdown Timer Widget, didn’t see a place there either.
    All I want is a count down from todays date to the New Year. 1/1/10
    Where the do I add this information??? I thought this was going be pretty easy? is it? many thanks

    1. “Usage
      Login to WordPress and go to Manage > Countdown Timer. To add an event to count down to, scroll down to ?One Time Events? and follow the instructions.”

      Oh boy I feel silly. It was extremely easy.

    1. Not really. I toyed around with the idea, but decided not to keep it in for the time being. If there’s enough demand, I would consider attempting to implement it again.

        1. That was the intent when I was playing around with the idea. But it quickly got complicated: how long do you keep the date up for? When do you switch the time from last years event to this years event? Is the event always displayed? Like I said, if there’s enough demand, I may try and tackle it again.

          1. Well I would say that most of those things could be decided by the user themselves. All you have to do is give peopel the option to automatically relog the event for the following year once it ticks over. Then on the day it happens, the date says “Today” instead. Then it’ll drop back to the bottom of the list.

  403. I just loaded the countdown timer on my site. love it. Wondering about the best way to change the size of the numbers and labels – we are wanting them to be larger.

    thanks for your help.

    1. @Dana Bincer,

      Right now, the best way is to through the “Display Format Options > Display Style” setting. It uses standard CSS markup, although that will only affect the numbers. I’m working on implementing a better system for the next version.

  404. I did install the Countdown Timer Plugin on my Localhost without any problems. Everything seems to work fine.

    After this I tried it Online with the same Website, same WordPress Version and same Plugin Version and its causing the general options panel to disappear.

    If I go to wp-admin/options-general.php everything after the timezone drop down is not displayed. The time zone drop down doesn’t work either.

    Any idea how to solve the problem?

      1. It’s strange. As I described above it works well on my computer, but not Online on the Server. Therefore it seems to be a Problem with the Server & your Plugin. Maybe some Javascript Issues? If I write a new article, the RichTextEditor only works in some articles as well. If I disable your Plugin: No Problems. If I enable it again I can’t switch between HTML and RTE – but only with some not with all articles. Any ideas how to figure out whats going on?

        Thanks for your help!

  405. I am using WP 2.9.2 and when I installed the countdown timer. There is no option for me to set the timer events. The plugin is activated but no option appear on the setting.

  406. Hello,

    this plugin is very good.

    Is there a possibility to make this countdown like a ticker?

    I have a ticker at the moment in my sidebar at first. This is an example.

    Is it possible to show the countdown timers like in this newsticker?

    Can you give me a code or have you got any idea how to make it?

    Thank you very much for your help.


  407. Pingback: For the week of 2010-03-20 in Tweets | Andrew Ferguson

  408. Pingback: Countdown Timer Update is in the Works | Andrew Ferguson

  409. I use your plugin to show a countdown on a marriage-blog (thanks for that).

    After updating to v2.4 my Display Format changes and the menu to configure them are gone.

    It’s my first blog/website so to configure setting in the editor is not possible for me.

    Is it possible to get the easy way to configure back?

    1. @Peter

      Styling is now done using CSS. This allows for more and better control about how the output looks. To style the time like you did before, you’ll want to add something like:

      .fergcorp_countdownTimer_event_time{ cursor:pointer; border-bottom:1px black dashed; }

      to your CSS file. You can read more about available CSS classes in the installation section of the Readme file.

  410. I love your work, but the 2.4 release breaks the page style when using fergcorp_cdt_single.
    When used within a P-block, the paragraph is closed and a li-element is added, breaking the looks of the site. I have been able to remove the li-bullet using css, but the ending P-element can’t be solved using css.
    Any advice or fix is greatly appreciated.

    1. It is currently impossible to remove the li-element, I’ll try to issue an update soon to fix that (after the rest of the small things I missed are reported). The issue the P-element I think is related to how WordPress parses the_content. If you have text or a non-breaking space both before and after the shortcode, that should solve the problem (at least in my testing).

  411. after the upgrade i lost the half of my “appuntamenti” (events in italian, look at the page) and it’s impossible to add new event
    i use 2.9.2 with Cordobo green park 2 theme
    the site is hosted by bluehost
    thanks for the help

    1. @Pietro

      I’m really sorry about this. I found a bug in the code, did some more testing to validate it, and released an update (2.4.1). Unfortunately, you won’t be able to get the missing event back. However, you should be able to add them again now.

  412. Hi
    First thanks a lot for the great plugin.
    Since the update to 2.4 i also have a problem with the titel table “Countdown” it dosnt not fit the page stile on my site i use wp2.9.2 and to handel the css for me as a newbie is also difficult.

  413. Thanks for the plug-in. I cannot seem to center the timer. I have tried using CSS but it seems as though it’s being overridden by the list function. How do I center the timer?

    Thank you in advance.

  414. Andrew –

    Thanks for your plug-in, I have just started to use it. I have a question about setting the output to a variable. I’m no expert in PHP, so correct me if I’m off in left field here.

    For example…

    $variablename = function_exists(‘fergcorp_countdownTimer’)?fergcorp_countdownTimer():NULL;

    I’m attempting to insert this code into my sidebar.php, for a wordpress 2.9.2 installation. I have only one timer set, and the timer works fine simply using the above function call. I simply want to assign it to a variable to pass to a ttf plugin, which generate font images on the fly for headlines and the like.

    There is probably some obvious reason this is not working, but being the novice I am, I’m clueless. Any enlightenment you could provide on this would be greatly appreciated!

    Yours Truly,

    Clueless in Bahrain

    1. Dear Clueless in Bahrain,

      fergcorp_countdownTimer has two optional arguments that can be passed. They are: $eventLimit and $output. By default, they are set to -1 and "echo", which means that the function will print all of the events present. If you want to to return the events to a variable (which is what you are trying to do), you need to set $output to "return".

      Thus, you’re code should look like:

      $variablename = function_exists(?fergcorp_countdownTimer?)?fergcorp_countdownTimer(-1, "return"):NULL;

      Here’s the lame part though: that won’t give you what you want because it will still return formatting information (i.e. span and li elements).

      What you really want to use is fergcorp_countdownTimer_single, which accepts one argument, a date, and returns (not prints) just the text.
      Thus, the code you’ll ultimately use is:

      $variablename = function_exists(?fergcorp_countdownTimer_single?)?fergcorp_countdownTimer_single("DATE"):NULL;

      Where DATE is some string parsable by PHP’s strtotime function.

      Now, the downside is that you can’t manage the date using the nice management interface, but all the other settings will work.

      Yes, this was a bit long winded. But I figure it’s worth the history lesson to give you the background.

      Any chance you could send me a postcard from where ever you guys are now?


  415. Where do i change the display where it reads ‘in’ and ‘days’, so for example, it reads ‘in 840 days’ where I just want it to read the number 840?


  416. Charmed Designworks

    I would like to have zeros display in the countdown such as:

    236 days, 02 months, 05 days, 56 seconds

    I assumed the choice in the admin panel to “Strip non-significant zeros: ” set to “no” would be the setting for showing those zeros, but it is set that way and no zeros.

    What am I missing?

    Thanks, and great plugin!

    1. Charmed Designworks

      Oops, the date I typed doesn’t make much sense, but hopefully you see what I mean about the zeros.

    2. @Charmed Designworks:

      You’re not missing anything. That label is misleading, it should probably read “Strip non-significant units” instead. So as it currently stands, you can’t do what you’re wanting to do at the moment without hacking the code.

      1. Charmed Designworks

        If I may take the route of editing the code, do you have suggestions for how to cause the zeros to show?

        1. Sure, most of the code is already there, you just have to tweak it. The easiest way would be to perform a find-and-replace on %d and replace it with %02d

          This takes advantage of sprintf’s padding specifier ( which allows you to specify the type of padding used (a zero in this case) and the total number of places you want to display (two). I tried it out and it appears to work just fine, you should find and replace 35 instances.

  417. I am in central time zone. Is there a way to change the time zone so that I can have the “hover” option be accurate?

      1. Ha, I didn’t even know that configuring the time zone was an option. Got it taken care of. thanks so much for the plugin and help.

  418. Andrew,
    I’m trying to set up the counter to just display a single item, and I’d like to disable or turn off the configuration so that the item doesn’t get a bullet — so that it just displays as text.
    Is there a way to do it?
    I tried using the shortcode in text instead of the widget, but the shortcode displayed as literal text. Is there a better way to do that?


  419. Pingback: Down with Flash | NewMedia On the Go

  420. I’m making an “about me” page in my wordpress install. I wanted to add the countdown telling how long i’ve been married (a bit less than two years now). I added the square brackets tag, but for some reason, it doesn’t take the date. I tried 21/06/2008, 21 june 2008 and June 21 2008, but both are parsed as january 1st 1970 (yeah, where unix_timestamp start).

    I’m hosting onto IIS server, but i don’t think this can lead to any problem

    1. @David C:
      IIS does some funky things, and unfortunately I don’t have an IIS server to test on. You might try formatting your date as an RFC 2822 date: Thu, 21 Dec 2000 16:01:07 +0200, which I know is parsed correctly by strtotime.

  421. I am trying to change the dotted line below the test of the countdown and I can’t seem to find the right way without disabling the plugin.

    I found this in the .php, where I think I could change it:

    “$timePrefix = ““;”

    But I don’t know where to add lines for border: none, color:…, etc.

    Whenever I try to add a line I screw up and disable the plugin.


    1. @scott:

      Per the instructions, the following CSS classes are available for styling:

      * fergcorp_countdownTimer_event_li styles each List Item, each item encompasses one countdown event
      * fergcorp_countdownTimer_event_title styles the title of the event
      * fergcorp_countdownTimer_event_linkTitle styles the title of an event if it is linked
      * fergcorp_countdownTimer_event_time styles the actual countdown timer

      The class you are interested in using is probably fergcorp_countdownTimer_event_time

      1. Where do I find the css files though? I have the css for my overall wordpress theme, but when I go to edit the Countdown Timer plugin I only see the php and js files?

        I am part noob and part knowledgeable.


        1. I found the code below in the php, but where do I stick new code to do things like have no border or to change the color.

          The class you are interested in using is probably fergcorp_countdownTimer_event_time

          REALLY appreciate you taking the time to respond. Love the plugin.

  422. Hi, I was wondering if you know of a plugin that will count down the time my readers are on my site. For example, my site name is Happy Hour Mom, and each time someone visits my site I would like a timer to start counting down from 1 hour. So they can see how much time they have left in their “Happy Hour.” Thanks for your help!


      1. Okay, it works in my post, is there any way i can get to appear in my sidebar? I would really like it to appear on the sidebar so that they can navigate throughout the site and have it counting down on the side…

  423. Is it possible to have this plugin trigger an event?

    I saw a really great time setup on another church site

    I have been trying to find a plugin of sorts that will allow me to replicate the same type of functionality for our own live broadcasts, but have had no luck so far.

    That site has one of the coolest timer setups I have seen to date. When the time runs out, the page uses ajax to switch to the live player and chat box. Basically it changes the page itself when triggered.

    Is this type of setup possible with the countdown timer?

  424. How far in the future can you create timers for. I’m trying to make one for 33 years in the future and it isn’t working. Thanks!

    1. @Brandon: You are probably using a version of PHP less than 5.1.0.

      The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 UTC to Tue, 19 Jan 2038 03:14:07 UTC. (These are the dates that correspond to the minimum and maximum values for a 32-bit signed integer.) Additionally, not all platforms support negative timestamps, therefore your date range may be limited to no earlier than the Unix epoch. This means that e.g. dates prior to Jan 1, 1970 will not work on Windows, some Linux distributions, and a few other operating systems. PHP 5.1.0 and newer versions overcome this limitation though.

      1. According to the System Info Scan box in Security on my WordPress blog I am using PHP 5.2.13. Any other ideas? See below

        ?Memory usage : 26.31 MByte
        ?MYSQL Version : 5.1.30
        ?SQL Mode : Not set
        ?PHP Version : 5.2.13

  425. Pingback: Starting Spaghetti Junctions | Track 23

    1. Per the instructions, you can makes changes to the appearance of Countdown Timer display using CSS. The following CSS classes are available:

      * fergcorp_countdownTimer_event_li styles each List Item, each item encompasses one countdown event
      * fergcorp_countdownTimer_event_title styles the title of the event
      * fergcorp_countdownTimer_event_linkTitle styles the title of an event if it is linked
      * fergcorp_countdownTimer_event_time styles the actual countdown timer

  426. First at all, congrats abour this plugin!

    I’m trying to use it in my footer website with this code:

    but the countdown in only displayed in spanish (my default web language). When I change the language to english or german it still display the countdown in spanish.

    Any ideas?


  427. I tried setting a date of 2059, and it didn’t like it. So I looked for something else, but nothing really fits.. do you think you can look in to it? ๐Ÿ™‚ I’d be most grateful, but I’m not expecting anything! ๐Ÿ™‚ Yours kindly.

  428. Is there a way to use the plugin to countdown to a particular time each day, (happy hour), and have it just run on an infinite loop?

  429. Hi.

    I installed the plugin in my blog. However, I am not sure why but I am not able to see the Countdown timer link in the Tools menu. Therefore I am not able to add any events and the plugin is not working for me.


  430. Hi,
    thanks for the plugin.
    I want to use multiple timers in a sidebar but not all together in one widget and interspersed with other widgets..
    My solution is to use multiples of a text widget that handles PHP and place code for one timer in each.
    My theory is fine. The code you have on this page for an ordered list of timers named countdown works properly in the PHP widget.
    The problem is the PHP widget does not like wordpress shortcode and I can not seem to work out the regular PHP syntax to use for the shortcode [fergcorp_cdt_single date=”ENTER_DATE_HERE”]
    hope you can help

  431. Forget my previous question, I was making things more complicated than needed!!
    I had got in the habit of using the PHP text widget.
    I just put the shortcode in a plain text widget and it worked fine.
    Thanks again for the plugin

  432. Pingback: Jag har lyckan att vara Kรถrlings gรคstarbetare… « Anne-Marie Kรถrling

  433. Thank you for creating a great plug-in.

    On my events page I have 3 calendar events, and I want to show a count down within each events’ text rather than in a single list at the top. Is there a way to do it?

    Thank you.

  434. Pingback: 2 Countdown Timer Wordpress Plugins Perfect for Contests

  435. In WP 3.0 I noticed a wrong offset / time calculation depending on the UTC settings in WP settings. The offset is added to the time entered for an event so that with UTC +2, for event time 10:00 will be shown 12:00. The time remaining is also wrong by this offset.
    To work around the wrong offset / time display in WP 3.0, change the following lines:

    405:  $timePrefix = "<abbr title = \"".gmdate($timeFormat, $time + (get_option('gmt_offset') * 3600))."\" id = '$nonceTracker' class = 'fergcorp_countdownTimer_event_time'>";
    to:    $timePrefix = "<abbr title = \"".gmdate($timeFormat, $time)."\" id = '$nonceTracker' class = 'fergcorp_countdownTimer_event_time'>";
    410:  "targetDate" => $time,
    to:    "targetDate" => $time - (get_option('gmt_offset') * 3600),
    423:  "targetDate" => $time,
    to:    "targetDate" => $time - (get_option('gmt_offset') * 3600),
  436. Pingback: Moving from Blogger to Wordpress | Beth: A Work In Progress

  437. I noticed that the javascript for this plugin gets included on every page of the site even if I am only using a countdown on one page. Is there anyway to have the js only included on the pages that require it? Other than that, awesome plugin!

  438. Hi Andrew!

    Very useful plugin you got here, but I have one question.. How can I set the tracked time to lock on my time zone – i.e. I have a radio show every Sunday and I’m hoping to show the right countdown to my readers worldwide.

    Any help appreciated! Thanks

  439. Hey

    It would be great if you can insert options to change color or font.
    Furthermore I hope you insert an option wich allows me to change the displayed text like this:

    12 Days,
    11 Hours,
    7 Minutes,
    39 Seconds

    Now its displayed like this:

    in 12 Tagen, 11 Stunden, 7 Minuten, 39 Sekunden

    An if my sidebar isn’t great enough to show it in one line it looks like this:

    in 12 Tagen, 11 Stunden, 7 Minuten,
    39 Sekunden

    Dont like this way of displaying the text;) Hope you can fix it with an update…

    Greatings from Germany
    Admin Reward-News

  440. hallo andrew,
    thank you for your great work.
    sorry, i am a greenhorn.
    i want to show the running seconds on my countdown.
    heres my code:

    los gehts [fergcorp_cdt_single date=”01.12.2010 00:01″].

    what can i do for my problem?

  441. ok, there was to find in the settings.

    can i cancel the point under the countdown:

    in 20 Tagen 3 Stunden

  442. Pingback: Making the Move from Blogger to Wordpress (My Experience) | Beth: A Work In Progress

  443. Pingback: Netzleben Teil 4 ? Technik ? Woche 2 - Yoga Reisen fรผr Sie!

  444. Pingback: deutsche blogger auf facebook | Goodbye Germany, Auswanderung nach Tennessee / USA & digital Scrapbooking

  445. Pingback: Updates

  446. Pingback: Tech Tuesday: The Building Blocks of Go With Me! (Site Anatomy)

  447. Pingback: 7 CountDown Plugins im Test | - Mein WordPress Magazin

Comments are closed.