Title: Multiple page.php file inside the theme folder?
Last modified: August 19, 2016

---

# Multiple page.php file inside the theme folder?

 *  Resolved [yoursanjay](https://wordpress.org/support/users/yoursanjay/)
 * (@yoursanjay)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/multiple-pagephp-file-inside-the-theme-folder/)
 * I want multiple page.php files inside my theme folder like page.php, page1.php,
   page2.php and so on.
 * The main reason is as follows:
    I have a page menu structure like Page 1 , Page
   2 , Page 3 and so on. When Page 1 menu is clicked, page1.php will be accessed
   and in the same way for Page 2 and Page 3.
 * In my page1.php, page2.php and page3.php files there are completely different
   layout and functionality. So, I prefer to multiple page.php files.
 * Is it possible? If yes, please tell me the procedure.
 * Thanks in advance.

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

 *  [forunner](https://wordpress.org/support/users/forunner/)
 * (@forunner)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/multiple-pagephp-file-inside-the-theme-folder/#post-1604188)
 * in your theme, add the page2.php with (in the beginning 🙂
 *     ```
       <?php /* Template Name: template page2
       */
       ```
   
 * now, in the dashboard, when you will create (or update) a page, you could choose
   the template “template page2”
 *  Thread Starter [yoursanjay](https://wordpress.org/support/users/yoursanjay/)
 * (@yoursanjay)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/multiple-pagephp-file-inside-the-theme-folder/#post-1604460)
 * Thanks a lot.. Great solution. My problem is resolved.

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

The topic ‘Multiple page.php file inside the theme folder?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [yoursanjay](https://wordpress.org/support/users/yoursanjay/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/multiple-pagephp-file-inside-the-theme-folder/#post-1604460)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
