• I’m trying to create a site with weekly roundup for links. The site will have multiple categories, with each archive page displaying the links from that week. For reference, the site can be found @discover.getsprk.com

    I am having trouble with how to make the date navigation work for querying posts per week.

    Right now, I’m using the example code from the codex, but it doesn’t seem to work with pagination. I’m trying to create the back and forward links for the current date/post query.

    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    				$args = array(
    					'w' => $current_week,
    					'posts_per_page' => 5,
    				  	'paged' => $paged
    				);
    				query_posts( $args ); 
    
    				next_posts_link('New ?', 0);
    				previous_posts_link('Older Entries ?', 0);
    				// Reset Query
    				wp_reset_query();

  • The topic ‘Weekly archives query w/navigation links’ is closed to new replies.