WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Template for each Page (4 posts)

  1. Dutch-Admin
    Member
    Posted 5 years ago #

    I need a code tu put different template for each page of my site

  2. ardgedee
    Member
    Posted 5 years ago #

    There are multiple ways to do this, depending on how you want the site set up. The simplest way is to create all the templates you need, adding the following to the very top of each:

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

    And then select that template's name from the Templates list in that page's editor. Detailed instructions are available in the WordPress Codex entry about Page Templates.

  3. Dutch-Admin
    Member
    Posted 5 years ago #

    But i create the template then i put the code on template and after hat wat i do???

  4. Samuel B
    moderator
    Posted 5 years ago #

    go to
    admin - pages - edit/add new
    right sidebar has dropdown box for selecting differing templates - if you created yours as correctly as pointed out above

Topic Closed

This topic has been closed to new replies.

About this Topic