Support » Themes and Templates » Associating theme files to a ‘Page’

  • Resolved colincameron


    In WordPress 1.5 you could create a archive page for example and associate it with a theme file using the following method.

    Under Custom Fields, select _wp_page_template from the dropdown. Leave the Key field blank, and enter archives.php into the Value field.

    In WordPress 2 I dont see the option to select “_wp_page_template” any ideas? Or is there a different way to get “archives” to show up under the wp_list_pages function.


Viewing 4 replies - 1 through 4 (of 4 total)
  • Why not choose it in the Page Templates section? (BTW, that was the “normal” way even in 1.5)
    more: Pages#Page_Templates

    Thanks for the quick response, I must be looking in the wrong place “Page Templates” does not show up on my “write page” page. I have a archives.php file in my theme directory so according to the codex it should be there?..

    Thanks again.

    Yes. Usually it shows up only if you have a default (=page.php) template AND another one.
    Then you’ll have a dropdown menu to pick the Page template you want to use. In some themes I’ve made there were 6-7 Page templates. So, I know it works.

    Ok I figured it out. I didn’t declare a template name at the top of the file. Im not sure why I was using the other method before.

    Thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Associating theme files to a ‘Page’’ is closed to new replies.