Title: Using custom page.php
Last modified: August 20, 2016

---

# Using custom page.php

 *  [yaralian](https://wordpress.org/support/users/yaralian/)
 * (@yaralian)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/using-custom-pagephp/)
 * Hi,
 * I use a template which uses page.php to display static pages (not posts). The
   problem is that I have 3 pages which each need to have a separate page.php. I
   know which pages these are so I can hardcode it if needed, but how I do make 
   WP understand what I want?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Harris O.](https://wordpress.org/support/users/hfort/)
 * (@hfort)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/using-custom-pagephp/#post-2744305)
 * First, creating your templates if you don’t have them yet.
    Page.php is the default
   page. Get that, replicate it and rename it; creating: page_templateA.php page_templateB.
   php page_templateC.php Now on top of those pages, you’ll probably see this code`
   <?php get_header(); ?>` add this code above that and on every page you created.*
   use different names for each.
 *     ```
       <?php
       /*
       Template Name: Template A
       */
       ?>
       ```
   
 * Upload the pages to your server/ within your theme files.
    Now, go to edit your
   pages and under the “page attributes” > Templates > use the dropdown to select
   the template you created > update your page.
 *  Thread Starter [yaralian](https://wordpress.org/support/users/yaralian/)
 * (@yaralian)
 * [14 years ago](https://wordpress.org/support/topic/using-custom-pagephp/#post-2744381)
 * WOW… so amazingly easy to do. Thanks a lot. I really appreciate the help.
 * John

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using custom page.php’ is closed to new replies.

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [page](https://wordpress.org/support/topic-tag/page/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [yaralian](https://wordpress.org/support/users/yaralian/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/using-custom-pagephp/#post-2744381)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
