Skip to content

Instantly share code, notes, and snippets.

@artlung
Created February 13, 2010 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artlung/303700 to your computer and use it in GitHub Desktop.
Save artlung/303700 to your computer and use it in GitHub Desktop.
WordPress Archives Pages Code with no post limit.
<?php
if (is_month()) {
$request = explode('/', $_SERVER['REQUEST_URI']);
$year = $request[2];
$month = $request[3];
query_posts( 'posts_per_page=-1' . '&year=' . $year . '&monthnum=' . $month );
}
if (is_tag()) {
$request = explode('/', $_SERVER['REQUEST_URI']);
query_posts( 'posts_per_page=-1' . '&tag=' . trim($request[3]) );
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment