Forums

[resolved] Set specific a .php template to specific page (3 posts)

  1. N33D
    Member
    Posted 2 years ago #

    Hi Guys,

    I have to include a advanced form that someone else made.
    I did look for a plugin, so that i can include a .php file in the page's content but with no luck.

    I though if i can set a specific template to that page, then it is fixed.
    So i want (for example) page: "Order now" take the template ordernow.php instead of page.php.

    Is that possible? I did search in the docs, but couldn't find anything about it.

    Thanks for all help!

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    You need to have the proper construct at the beginning of a Page Template to qualify it as a Page Template.

    Example:

    <?php
    /*
    Template Name: Order Now
    */
    ?>

    Related:
    Pages
    Why is there no Page Template option when writing or editing a Page?
    Template Hierarchy

  3. N33D
    Member
    Posted 2 years ago #

    Wow! That's kinda easy!

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.