WP 1.3 - Problem with Archives by Month / Year (7 posts)

  1. sadish
    Posted 10 years ago #

    Inside Date.php, I had something like 'Archive for December 2004' as a heading, when the user is browsing the monthly archive for december 2004.
    This was working with the original kubrick theme in WP 1.2
    but this stopped working, when migrated to WP 1.3
    the code looks like this

    <div id="content" class="narrowcolumn">
    <?php if ($posts) { ?>
    <?php if (is_day()) { ?>
    <h2>Archive for <?php the_time('l, F jS, Y'); ?></h2>
    <?php } elseif (is_month()) { ?>
    <h2>Archive for <?php the_time('F,Y'); ?></h2>
    <?php } elseif (is_year()) { ?>
    <h2>Archive for <?php the_time('Y'); ?></h2>
    <?php } ?>
    <div class="navigation">
    <div class="alignleft"><?php posts_nav_link('','','&laquo; Older Entries') ?></div>
    <div class="alignright"><?php posts_nav_link('','Newer Entries &raquo;','') ?></div>
    <?php foreach ($posts as $post) : start_wp(); ?>
    <div class="post">

    and the output can be seen at
    It just displays 'Archive For' but not the actual month and year.
    the same thing appears on the sidebar on the same page.
    the only difference is that sidebar comes after 'The Loop'
    somebody help me solve this problem.

  2. sadish
    Posted 10 years ago #

    Oh Thanks...that works !
    and by the way, are you planning to release your web theme soon ?

  3. tinarenee
    Posted 10 years ago #

    thank you muchly for posting, sadish and answering, somefool. I'd noticed this problem in my blog and had no clue how to fix it! :)

  4. somefool
    Posted 10 years ago #

    Took me a while to decipher it, christ knows how Michael or Ryan worked it out.

  5. somefool
    Posted 10 years ago #

    sadish - My theme is going well so I may well throw up a working copy tonight.

  6. somefool
    Posted 10 years ago #

    Ok, theme can be got here.

  7. tinarenee
    Posted 10 years ago #

    oooooo! pretty!!! (the theme, that is...) Like a nice warm sweater. I like how you gave a hint of color on the top left and right sides of the template.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.