WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking to create individual archives for each category of my website, but want to them to break into weeks. Check out the linked image (can't embed images as a new user?):


I'm finding real difficulties here: 1) Breaking archives out weekly, 2) Adding the Date at the Top 3) Listing each post as a list item with some HTML in it…

Any help would be tremendously appreciated!

share|improve this question
<?php $args = array(
    'type'            => 'weekly',
    'limit'           => ,
    'format'          => 'html', 
    'before'          => ,
    'after'           => ,
    'show_post_count' => false,
    'echo'            => 1 ); ?>
<?php wp_get_archives( $args ); ?>

See this Codex article: wp_get_archives

share|improve this answer
check out the linked image. I think @Ben is looking to break up the posts by week, rather than just display links to weekly archives. – TheDeadMedic May 16 '11 at 22:02

I use the filter widget_archives_dropdown_args to limit number of months in the default monthly archive widget - you can modify it to change the type to weekly.

function my_limit_archives( $args ) {    
    $args[ 'type' ] = 'weekly'; 
    return $args;
share|improve this answer
thanks @ialocin – Tara Oct 18 '14 at 22:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.