• Greetings.

    I’ve been working on a theme for my site, Allotrope Dome. However, I seem to be having problems with the archives template.

    I entered the following code in a file titled “archives.php,” then uploaded it into my theme folder with all my other theme files:

    <?php
    /*
    Template Name: Archives
    */
    get_header(); ?>
    
    <div id="container">
    	<div id="content" role="main">
    		<?php // <div id="archivecontent"> ?>
    
    		<?php the_post(); ?>
    		<br/>
    		<font size="4">Archives</font>
    		<br/><br/>
    
    		<div id="searchwrapper">
    			<?php get_search_form(); ?>
    		</div>
    		<br/><br/>
    
    		<b>Archives by Month:</b>
    		<ul>
    			<?php wp_get_archives('type=monthly'); ?>
    		</ul>
    
    		<b>Archives by Post Title:</b>
    		<ul>
    			<?php wp_get_archives('type=alpha'); ?>
    		</ul>
    
    		<b>Tag Cloud:</b>
    		<ul>
    			 <?php wp_tag_cloud( $args ); ?>
    		</ul>
    
    	<?php //	</div> ?>
    	</div><!-- #content -->
    </div><!-- #container -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Then I logged into the admin panel and created a new page called “Blog Archives.” I selected the “Archives” template and hit Save. However, this is what my archives page looks like now: http://allotrope-dome.net/wordpress/?page_id=61

    I just want it to show the archives by subject name, archives by month posted, and a tag cloud. What’s going on? Why does all this other stuff appear over it?

The topic ‘problems with archives template’ is closed to new replies.