• 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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • It LOOKS like you could do something with:
    https://www.ads-software.com/extend/plugins/simple-nav-archives/

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

    Also see;
    https://www.ads-software.com/extend/plugins/tags/archives

    Thread Starter rodrego

    (@rodrego)

    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.

    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(); } ?>

    Thread Starter rodrego

    (@rodrego)

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

    Thread Starter rodrego

    (@rodrego)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Monthly archive that starts in a specific month’ is closed to new replies.