Weekly archive shows posts from the entire year. (4 posts)

  1. ebedgert
    Posted 1 year ago #

    I'm using the following in my template to display a year's worth of weekly archives:

    <?php wp_get_archives( array( 'type' => 'weekly', 'limit' => 52 ) ); ?>

    and it displays the weekly links nicely enough, but clicking on a link returns every post for that year, starting with the latest available post for that year. (e.g., any 2013 week will return all 2013 posts, any 2012 week will return all 2012 posts, etc). What am I doing wrong?

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of assistance.

  3. ebedgert
    Posted 1 year ago #

    There's not much to see. The generated URL for weekly archives is http://www.mysite.com/?m=2013&w=34 (as an example) and resolves to http://www.mysite.com/2013/?w=34.

  4. Michael
    Part-Time Forum Moderator
    Posted 1 year ago #

    what are your permalink settings?

    what theme are you using?

    what is the code in archive.php or date.php?


Topic Closed

This topic has been closed to new replies.

About this Topic