Title: Countdown script and Archives
Last modified: December 20, 2016

---

# Countdown script and Archives

 *  [jackiefg](https://wordpress.org/support/users/jackiefg/)
 * (@jackiefg)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/countdown-script-and-archives/)
 * I put the following code onto my blog because my birthday is coming up soon:
   
   <div class=”solid”> <? $day = 20; // Day of the countdown $month = 12; // Month
   of the countdown $year = 2003; // Year of the countdown print ( “Only”. (int)((
   mktime (0,0,0,$month,$day,$year) – time(void))/86400) . ” shopping days left 
   til my birthday on Dec. 20th”); ?> </div> The code seems to work fine, but now
   I notice that my monthly archives show up on the page as 2003, 2003, instead 
   of Dec 2003 and Nov 2003. For those I’m using the code: <?php get_archives(‘monthly’);?
   > Does anyone know what’s happening here? Is there a conflict or something? Does
   anyone know how to fix it?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [jackiefg](https://wordpress.org/support/users/jackiefg/)
 * (@jackiefg)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/countdown-script-and-archives/#post-27250)
 * BTW, if you want to see it, go to [jackiefg.com/blog](http://www.jackiefg.com/blog)–
   both codes are on the left menu.
 *  [davidchait](https://wordpress.org/support/users/davidchait/)
 * (@davidchait)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/countdown-script-and-archives/#post-27252)
 * without even looking, have you tried renaming the variables to something like
   $bday_zzzz. Maybe you’re getting a variable collision of some sort…
    =d
 *  Moderator [Matt Mullenweg](https://wordpress.org/support/users/matt/)
 * (@matt)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/countdown-script-and-archives/#post-27253)
 * Rename your variables.
 *  Anonymous
 * [22 years, 5 months ago](https://wordpress.org/support/topic/countdown-script-and-archives/#post-27257)
 * I’m glad that you showed me what a variable was ($bday). I think you guys were
   exactly right. I renamed the $month variable to $birthmonth and now everything
   works as it should.
    Thank you so much 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Countdown script and Archives’ is closed to new replies.

 * 4 replies
 * 4 participants
 * Last reply from: Anonymous
 * Last activity: [22 years, 5 months ago](https://wordpress.org/support/topic/countdown-script-and-archives/#post-27257)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
