archive.php | not displaying correct Month and Year
-
Hi.
My archives index is not displaying the correct Month and Year title.
The linking is working, so clicking in the sidebar on January 2008 for exp. pulls in the correct content for January 2008 but the title will have the wrong Month and Year.
All titles will display as ‘Archives | October,2007’ for some reason (instead of the correct month and year)
I believe that my archive.php is set up correctly, here is a section of code:
<h3 class=”archive”>Archives |
<?php /* If this is a category archive */ if (is_category()) { ?>
Posts tagged as ‘<?php single_cat_title(”); ?><?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
Posts written in <?php the_time(‘l, F jS, Y’); ?><?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<?php the_time(‘F,Y’); ?><?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
Posts written in <?php the_time(‘Y’); ?><?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
<p>You have searched the
/”><?php echo bloginfo(‘name’); ?>
weblog archives for ‘<?php echo wp_specialchars($s); ?>’.
If you are unable to find anything in these search results, you can try one of these links.</p>
<?php } ?>
</h3>Thoughts of where the error could be? Any help is appreciated. Check it out here:
https://www.32flavorsdance.com
Thx!
-Meghan
- The topic ‘archive.php | not displaying correct Month and Year’ is closed to new replies.