• I’m using the newest version of WordPress. And in the previous versions, there was an option if you want to make “Archives” into a page, then you make a new page and for “Page Template” you select “Archives.php” or whatever…

    Except the new feature doesn’t seem to have a “Page Template” option? How do I make ‘Archives” into an actual page?

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Which theme are you using?
    On my test server, if I use WordPress default, I can add the page template, but If I am using the newest version Vertigo, I get no options for page template. Could be a theme issue???

    Maybe you theme does not have a Archives.php file. if not you can make one with this code (coppied from wordpress default theme)

    <?php
    /*
    Template Name: Archives
    */
    ?>
    
    <?php get_header(); ?>
    
    <div id="content" class="widecolumn">
    
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    
    <h2>Archives by Month:</h2>
    	<ul>
    		<?php wp_get_archives('type=monthly'); ?>
    	</ul>
    
    <h2>Archives by Subject:</h2>
    	<ul>
    		 <?php wp_list_categories(); ?>
    	</ul>
    
    </div>
    
    <?php get_footer(); ?>

    If you are still not seeing the themes, you could add the following code into you theme’s functions.php file.

    add_action('edit_page_form', 'mf_add_template_to_pages' );
    function mf_add_template_to_pages(){
    	global $post;
    	if ( 0 != count( get_page_templates() ) ) {
    	?>
    		<div id="pagetemplatediv" class="postbox <?php echo postbox_classes('pagetemplatediv', 'page'); ?>">
    		<h3><?php _e('Page Template') ?></h3>
    		<div class="inside">
    		<select name="page_template">
    		<option value='default'><?php _e('Default Template'); ?></option>
    		<?php page_template_dropdown($post->page_template); ?>
    		</select>
    		<p><?php _e('Some themes have custom templates you can use for certain pages that might have additional features or custom layouts. If so, you’ll see them above.'); ?></p>
    		</div>
    		</div>
    	<?php
    	}
    }
    Thread Starter michiru37

    (@michiru37)

    I’m using the newest 2.5 version that I recently downloaded… and there seems to be no function to make a page that lists just the archives.

    I have an archives.php page…

    And this page: Creating an Archive Index is telling me:

    for WP 1.5+

    Upload the archives.php in your theme directory (wp-content/themes/themename/). Then from the Admin Panel, Write > Write Page

    1. Give your new archives Page a suitable title like Archive Index. Leave the Page content blank.

    In the sidebar open the //Page templates// box, and select the //Archives// template. After saving it you will see a new item in your pages list, click on it, and enjoy!

    But there is no “Page Templates” box in my sidebar for the newest version?

    michiru,

    did you try my second recommendation?
    Look at the second code block above and give that a try.

    Thread Starter michiru37

    (@michiru37)

    Oh, I got it! Thank you!

    I tried doing this, and while the Page Template prompt now appears, when I click save it does not apply my changes :-/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page Templates?’ is closed to new replies.