Forums

[resolved] Add a template to a page (4 posts)

  1. Nghia
    Member
    Posted 3 years ago #

    Hi!

    I read the codex articles about templates but i'm still confused.
    I have created several template files (category-6.php, author.php...) but i dont see them when i create a page. I just see the basic archive template. what am i doing wrong?

    http://uploads.piximap.com/1279-notemplate.jpg

  2. Death Dream
    Member
    Posted 3 years ago #

    Add this to the top of the template page:
    <?php
    /*
    Template Name: PageNameHere
    */
    ?>

    "PageNameHere" Will show up in that drop down list.

    ~Death Dream~

  3. Nghia
    Member
    Posted 3 years ago #

    thank you very much!

  4. eiland
    Member
    Posted 2 years ago #

    how quickly does a temlpate name show up? I have it and it doesnt work :(

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags