Hi James,

like already wrote under your comment under another post, why do not ask the question under the post where you got the code from? 🙂

The code in your comment is not complete, maybe it was stripped by WordPress, but with that, I cannot help you. My article describes how to register a template, and if you have a specific issue with that, I am happy to help.

Best,
Florian