Archives not working
-
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.
https://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)
Viewing 1 replies (of 1 total)
- The topic ‘Archives not working’ is closed to new replies.