how to create a wordpress template based on an existing page