• It appears that my archives are not working at the moment. Whenever I try to select a certain month or something from the tag cloud, I get redirected to the main blog page.

    I am able to select an author and it will take me to the correct list of posts by the author.

    http://mileswright.com/?page_id=675

    Here is the code for my index.php which is the blog page. Anyone have any ideas?

    <?php get_header(); ?>
    <div id="container">
    <!-- Blog sidebar starts here -->
    <?php include (TEMPLATEPATH . '/blog_sidebar.php'); ?>
    <!-- Blog sidebar ends here -->
    
        <div id="contantCol">
          <div class="content">
    <!-- WordPress loop start here -->
    <?php
    query_posts('cat=-109&paged='.$paged);
    if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <?php static $ctr = 0;
    if ($ctr == "5") { break; }
    else { ?>
    	<table cellpadding="0" cellspacing="0" width="120" style="float:right" align="right">
    		<tr align="right">
    			<td><div class="avatar-border">
    				<div class="user-icon"><a href="index.php?author=<?php the_author_ID(); ?>"> <?php the_author_image(); ?></a>
    				</div>
    			</div></td>
    		</tr>
    	<tr><td align="right"><?php the_author_posts_link(); ?>
    	</td></tr>
    	</table>
    	<div class="contentheading">
    		<a href="<?php the_permalink(); ?>" rel="bookmark" title='Click to read: <?php strip_tags(the_title()); ?>'><?php the_title(); ?></a>
    	</div>
    		<span class="timestamp"><?php the_time('d.m.Y h:i:s') ?></span>
    					<?php the_content("Read more..."); ?>
    <?php $ctr++;
    	} ?>
    <?php endwhile; ?>
    <!-- WordPress loop end here -->
    		<?php if(function_exists('wp_page_numbers')) : wp_page_numbers("<div class='pagination'>", "</div>"); endif; ?>
        </div>
        </div>
        <?php else : ?>
     	<h2 class="center">Not Found</h2>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    <?php endif; ?>
    
    <?php include (TEMPLATEPATH . '/sidebar.php'); ?>
    
    </div>
    <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
  • Thread Starter kaedues

    (@kaedues)

    I’m sorry. I forgot that my code for the archives is actually in the sidebar I made for the blog posts. Here it is

    <div id="leftCol">
    		<div class="smodule tiyellow">
    			<h3><a href="javascript:;" onmousedown="toggleDiv('mydiv43');">Sproutians</a></h3>
                <div id="mydiv43" style="display: block;">
                	<div class="bgRepeat"><div class="bgBottom"><div class="bgTop">
    					<ul class="authorList">
                    		<?php wp_list_authors(); ?>
    					</ul>
     					<div class="clear"></div>
    				</div></div></div>
    			</div>
    		</div>
    		<div class="smodule">
    			<h3><a href="javascript:;" onmousedown="toggleDiv('mydiv83');">Tag Cloud</a></h3>
    			<div id="mydiv83" style="display: block;">
                	<div class="bgRepeat"><div class="bgBottom"><div class="bgTop">
                		<?php if ( function_exists('wp_tag_cloud') ) : ?>
    						<ul class="tagCloud">
    							<?php wp_tag_cloud('smallest=6&largest=18&order=RAND'); ?>
    						</ul>
    					<?php endif; ?>
    					<div class="clear"></div>
    				</div></div></div>
    			</div>
            </div>
    		<div class="smodule">
    			<h3><a href="javascript:;" onmousedown="toggleDiv('mydiv84');">Archives</a></h3>
    			<div id="mydiv84" style="display: block;">
    				<div class="bgRepeat"><div class="bgBottom"><div class="bgTop">
    					<span class="archive">
    						<?php wp_get_archives('type=monthly&limit=12&show_post_count=1'); ?>
    					</span>
    					<div class="clear"></div>
    				</div></div></div>
    			</div>
    		</div>
    	</div>
Viewing 1 replies (of 1 total)
  • The topic ‘Archives not working’ is closed to new replies.