Forums

[resolved] How do I convert sidebar Archives from Monthly to Weekly? (8 posts)

  1. mybattleblog
    Member
    Posted 2 years ago #

    Hello. I have a question regarding the sidebar Archives and haven't been able to really find anything here from a search. I found this link...

    http://wordpress.org/support/topic/81283?replies=11

    ...but I want to be sure it applies to me.

    Instead of having monthly archives, I want to have it set up as weekly. My blog's purpose is set around a specific time frame, which, in this instance, will be 60 weeks. I doubt it'll go beyond that, so having a weekly archive would, for my purposes, be better than monthly.

    Also, on the slim chance that the blog outlives its original purpose and goes beyond the 60 weeks, would it be possible to set it up so that the first 60 weeks would be listed as individual weeks, then have the rest of the posts listed in a monthly format? Again, I doubt that I'll need anything beyond 60 weeks, but I'd prefer to be prepared, just in case.

    If it helps any, I'm currently using WP 2.1.3 and the theme 'Connections' as the primary foundation of my blog. Any changes to it (other than this possible archive change) have been strictly cosmetic.

    Thank you very, very much for any suggestions you all may have. I know no one gets paid for this, so I truly appreciate the help that's extended to my situation...

  2. mybattleblog
    Member
    Posted 2 years ago #

    Can anyone take some time out and let me know if my answer is in the link I provided? Thanks...

  3. mybattleblog
    Member
    Posted 2 years ago #

    Never mind. I thought I'd get some support here, but I guess I was wrong. I'll just go back to Dreamweaver and good ol' fashioned HTML. At least that way I can do exactly what I want and not have to be floundering with WordPress...

  4. MichaelH
    moderator
    Posted 2 years ago #

    The Connections sidebar.php uses the template tag, wp_get_archives so you would change:

    <?php wp_get_archives('type=monthly&show_post_count=true'); ?>

    to

    <?php wp_get_archives('type=weekly&show_post_count=true'); ?>

    Additional resources:
    Stepping into Templates
    Stepping into Template Tags
    Recommended text editors

  5. mybattleblog
    Member
    Posted 2 years ago #

    Okay. Thank you, Michael. I appreciate the help, especially in the face of my frustration. I'll give this a shot before making any permanent changes and post back with the results...

  6. mybattleblog
    Member
    Posted 2 years ago #

    Thank you for the reply. The solution worked, so I now consider this to be resolved. There is another question, but I believe it requires a different thread, so this one can be closed out.

    Again, thanks...

  7. MichaelH
    moderator
    Posted 2 years ago #

    I've marked this Resolved but you can do the same thing via "This topic is" pulldown box under the topic title.

    Thanks for the feedback.

  8. mybattleblog
    Member
    Posted 2 years ago #

    No problem. Least I could do, after my tantrum... :)

Topic Closed

This topic has been closed to new replies.

About this Topic