Support » Fixing WordPress » don’t see templates drop-down on Page edit page

  • I have a custom theme that contains a file named archives.php. According to http://codex.wordpress.org/Creating_an_Archive_Index, I should be able to create a new page, select Archives from the “Page templates” drop down box, and I’ll now have an archives page. But I don’t see any “Page templates” drop-down when I create or edit a page.

    How can I get my archive page created?

Viewing 2 replies - 1 through 2 (of 2 total)
  • It’s likely that your theme file doesn’t contain the bit of code that WordPress is looking for to determine that it’s a page template.

    WordPress will be looking for something like this at the top:

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

    Without it, WordPress doesn’t know that you’ve got page template files.

    Thread Starter zomigi

    (@zomigi)

    That fixed it. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘don’t see templates drop-down on Page edit page’ is closed to new replies.