Parse error: unexpected T_ENDWHILE


I’m a PHP newbie, and like a true newbie, i didn’t back up my code before i started screwing around with it. Needless to say, i broke my wordpress page, and i can’t fix it. Hoping to reach out to the community for some help with this.

ERROR: Parse error: syntax error, unexpected T_ENDWHILE

 ITR Journal Code -](

The reason i was messing with the code is that i'm trying to add an 'older post & newer post' link to the template. If anyone can include the code to do so in their solution that would be greatly appreciated.

Thanks so much in advance.


Glancing over it quickly, I noticed that on on line 92, your endwhile statement needs a semicolon.

[edit]: Also, on line 114, your if-statement needs to be closed (with an endif;)

YOU ARE MY HERO. Worked like a charm. Thanks so much!