WordPress.org

Ready to get started?Download WordPress

Forums

Paginating Archive using "weekly" type (2 posts)

  1. harknell
    Member
    Posted 7 months ago #

    Is there a way within WordPress to add a pagination "next" and "previous" links to an archive page set with the "weekly" type? I can't find any info on this anywhere, and adding the standard template pagination codes does not output the expected links to the page.

    Is this a weird area WordPress doesn't really support? If so why have the "weekly" type at all?

  2. bcworkz
    Member
    Posted 7 months ago #

    I'm having no issues with a similar setup. The query is established from links generated by wp_get_archives(array('type=weekly');. I get links similar to mydomain.com/?m=2013&w=45 (I don't have permalinks setup for weeks, thus the URL parameters). The resulting archive template uses next_posts_link() and previous_posts_link() and the pagination works fine.

    How is you query formed and which pagination functions are you using?

Reply

You must log in to post.

About this Topic