First, you need to open a text editor add the blank file add this line of code at the top:

<?php /* Template Name: Custom Page Template */ ?>

Your custom page template can add any HTML, template tags, or PHP code in this file. The easiest way to get started with your custom page is by copying the existing page template provided by your theme.

To see full template code visit How to Create a Custom Page in WordPress article.

 

Your Answer
Sign In
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.