I am trying to update a page template, and when I do something strange happens. Let me explain..
I have a template "Hat Size Guide" where the code file is
I am trying to update that php file to include a hyperlink, and when I do the pages that had this template set no longer have this template set: I go to edit a page that uses this template and the Template is automatically set to "Default". Also when I try to set the template back to "Hat Size Guide", all of a sudden all my custom fields for this template are gone. Now when I restore the php file back to what is was, everything is restored to what it was.
I have even tried to just update the php file with a simple
and I get the same results. This is driving me mad! Does anyone know why this is happening?
Template file: page-hat-size-guide.php