• I have no idea how common this is, but I’m wanting to create pages that utilize php elements. I installed a plugin that makes php recognizable in pages. It seems to work well enough for some things. However, I’m just wondering, is there a more efficient way of doing this? My initial idea was to create an all new php file borrowing many elements from the page.php but still having its own unique layout. I’ve not had success making that work, though.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I would not think it would be very hard since the whole thing is php anyways.

    You can create a template for that specific page. For e.g. contact

    <?php
    /* Template Name: Contact */
    ?>

    And all you have to do when you create a page is to make use of this template, and there you have it. You can custom code the template to make use of the page.php layout.

    Thread Starter planesfillingwc

    (@planesfillingwc)

    Cool, thanks. I think I got it worked out.

    I figured this would be an easy solution.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Placing php elements within a Page.’ is closed to new replies.