Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WordPress Archives Pages Code with no post limit.
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
You can’t perform that action at this time.