zomigi
Member
Posted 4 months ago #
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?
mikejandreau
Member
Posted 4 months ago #
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.
zomigi
Member
Posted 4 months ago #