WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ebedgert
    Member
    Posted 10 months 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 10 months 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
    Member
    Posted 10 months 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. alchymyth
    Forum Moderator
    Posted 10 months ago #

    what are your permalink settings?

    what theme are you using?

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

    http://codex.wordpress.org/Template_Hierarchy

Reply

You must log in to post.

About this Topic

Tags