• Resolved yoursanjay

    (@yoursanjay)


    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)
  • 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

    (@yoursanjay)

    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.