• I have a calendar template file in my theme that uses some calendar generating PHP that I wrote. By default it displays the current month and year, but you can scroll the months w/ next and previous buttons. These buttons use get variables for the month and year, for example:

    https://mydomain.com/index.php/main-calendar/?month=12&year=2011

    Using this format works for every month and year combo in 2011, however I get an error “The system cannot find the specified file” when I try to access any month in 2012. Outside of WordPress, the code works fine. However, in the templates, I receive the error mentioned above.

    I’d be happy to provide more detail to anyone. I’m curious how my GET variables would stop working when the year is set to 2012. Anyone have any ideas? Thanks in advance for any help!

  • The topic ‘Trouble w/ PHP get variables’ is closed to new replies.