Created
February 13, 2010 22:40
-
-
Save artlung/303700 to your computer and use it in GitHub Desktop.
WordPress Archives Pages Code with no post limit.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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