Title: cableb's Replies | WordPress.org

---

# cableb

  [  ](https://wordpress.org/support/users/cableb/)

 *   [Profile](https://wordpress.org/support/users/cableb/)
 *   [Topics Started](https://wordpress.org/support/users/cableb/topics/)
 *   [Replies Created](https://wordpress.org/support/users/cableb/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/cableb/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/cableb/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/cableb/engagements/)
 *   [Favorites](https://wordpress.org/support/users/cableb/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to pass a year query string to a Page?](https://wordpress.org/support/topic/how-to-pass-a-year-query-string-to-a-page/)
 *  [cableb](https://wordpress.org/support/users/cableb/)
 * (@cableb)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/how-to-pass-a-year-query-string-to-a-page/#post-1516393)
 * It does indeed help! Thanks a bunch, Mike.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to pass a year query string to a Page?](https://wordpress.org/support/topic/how-to-pass-a-year-query-string-to-a-page/)
 *  [cableb](https://wordpress.org/support/users/cableb/)
 * (@cableb)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/how-to-pass-a-year-query-string-to-a-page/#post-1516390)
 * [@mikeschinkel](https://wordpress.org/support/users/mikeschinkel/): If this is
   even possible…
 * I have my archive page ([http://mydomain/archive-page/](http://mydomain/archive-page/))
   that has years listed on it. Ideally, these would link to [http://mydomain/archive-page/2003/](http://mydomain/archive-page/2003/),
   etc., and at those URLs, I’d like to grab the year and use it as a variable (
   like $yr = the tail end of the URL).
 * But those URLs aren’t yearly archives, so what exactly is their purpose? One 
   can append any number of random digits to any page and it’ll still show up.
 * I’ve tried using simply the_time(‘Y’); and a URL structure like [http://mydomain/2003/category/mycategory/](http://mydomain/2003/category/mycategory/),
   but that didn’t work (it always returned 2010) because apparently with the category
   parameters in there, it’s not considered a yearly archive…
 * Thanks for taking the time to at least hear me out!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to pass a year query string to a Page?](https://wordpress.org/support/topic/how-to-pass-a-year-query-string-to-a-page/)
 *  [cableb](https://wordpress.org/support/users/cableb/)
 * (@cableb)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/how-to-pass-a-year-query-string-to-a-page/#post-1516388)
 * [@mikeschinkel](https://wordpress.org/support/users/mikeschinkel/): I don’t want
   to hijack roadie’s thread, but I for one would actually prefer that URL structure…
   but being the newb I am, I don’t even have anything in place to get and use the
   year parameter.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to pass a year query string to a Page?](https://wordpress.org/support/topic/how-to-pass-a-year-query-string-to-a-page/)
 *  [cableb](https://wordpress.org/support/users/cableb/)
 * (@cableb)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/how-to-pass-a-year-query-string-to-a-page/#post-1516386)
 * [@dongaspari](https://wordpress.org/support/users/dongaspari/): Would you mind
   sharing your solution?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Can I use if (is_year('2007')) to customize a specific year's archive?](https://wordpress.org/support/topic/can-i-use-if-is_year2007-to-customize-a-specific-years-archive/)
 *  Thread Starter [cableb](https://wordpress.org/support/users/cableb/)
 * (@cableb)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/can-i-use-if-is_year2007-to-customize-a-specific-years-archive/#post-1634413)
 * Does the trick, thanks!

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