Since I upgraded to 2.7, my archives page only shows 10 posts. Im using a pretty common archive loop and it does not matter what I set the "psts_to_show" variable to - it always shows exactly 10 posts. It was working perfectly - showing ALL POSTS - before the upgrade.
My archives are at:
http://www.geldpress.com/archives
The archives.php is shown below:
<?php
/*
Template Name: Archives
*/
?>
<?php get_header(); ?>
<div class="page_archives_div">
<div class="ar_panel">
<h2>Archives By Category:</h2>
<ul class="dark">
<?php wp_list_categories('title_li='); ?>
</div>
<div class="ar_panel2">
<h2>Archives By Month:</h2>
-
<?php wp_get_archives('type=monthly'); ?>
</div>
<?php
$posts_to_show = 1000; //Max number of articles to display
$debut = 0; //The first article to be displayed
?>
<?php while(have_posts()) : the_post(); ?>
<h2><?php the_title(); ?></h2>
-
<?php
- <?php the_time('m/d/y') ?>: "><?php the_title(); ?>
$myposts = get_posts('numberposts=$posts_to_show&offset=$debut');
foreach($myposts as $post) :
?>
<?php endforeach; ?>
<?php endwhile; ?>
<?php get_footer(); ?>