Forums

Monthly archive that starts in a specific month (6 posts)

  1. rodrego
    Member
    Posted 6 months ago #

    I'm trying to create a monthly archive that lists months only from the start of 2009.

    Even in the future, the month list should always start at January 2009. wp_get_archives function apparently doesn't do this job.

    Does anyone knows a plugin or a way to do that?

    Thanks in advance.

  2. MichaelH
    moderator
    Posted 6 months ago #

    It LOOKS like you could do something with:
    http://wordpress.org/extend/plugins/simple-nav-archives/

    Please let us know if that works (or doesn't work).

    Also see;
    http://wordpress.org/extend/plugins/tags/archives

  3. rodrego
    Member
    Posted 6 months ago #

    Hi Michael, thanks for your reply.

    I just tried your suggestion, but this plugin couldn't be activated, because it generated a fatal error. As I didn't tweak the core files code, I think maybe it's not compatible with Wordpress 2.7.

    I believe some basic PHP should do the trick, but unfortunately I'm not a coder. I'd be grateful if you had some more ideas.

  4. MichaelH
    moderator
    Posted 6 months ago #

    I had no problem installing, activating, and then using Settings->Simple Nav Archives to only show 2009 archives.

    As I was using the WordPress Default theme, did have to add this to wp-content/themes/default/sidebar.php

    <?php if(function_exists('simple_nav_archives')) { simple_nav_archives(); } ?>
  5. rodrego
    Member
    Posted 6 months ago #

    Maybe that's because i deactivated the sidebar. I'll try again, and report back when I'm done. Thanks!

  6. rodrego
    Member
    Posted 6 months ago #

    I tried to bring back the sidebar, install it in different blogs, install it in a new blog, install old versions of the plugin, and oddly enough, none of them seems to work.

    Everytime, I get the same message, saying it caused a fatal error because of line 60 (on the earliest version of the plugin, it's line 29)

    The line goes as follows:
    $curYear = ($sna_options['desc_order']) ? $year_results[0]->post_year : end($year_results)->post_year;

    Unlikely hypothesis on why it doesn't work may be because I'm testing it in a local server, maybe when I transfer the blog to its real location, it works. And I'm using Wordpress in Portuguese as well, maybe it affects the date format somehow.

Reply

You must log in to post.

About this Topic