I am working on my first WP site and am having some difficulty. In my theme's index.php page, I see the following code:
<?php
query_posts(array(
'category__not_in' => array($headline),
'post__not_in' => $postnotin,
'paged' => $paged,
'numberposts' => 5
));
if ( have_posts() ): $postCount = 0; ?>
<?php while ( have_posts() ) : the_post(); $postCount++;?>
[more code....]
So - you see I'm trying to limit the number of posts on the home page to 5, which I thought was the default. Anyways, it is showing more than 5 and I can't seem to get it to work. I've tried "posts_per_page" without luck. If my theme is overwriting it, any ideas where that may be?
FWIW, I'm using the initiator theme by colorlabs
Thanks!!!
numberpostsis the old parameter, you should be usingposts_per_page. Right now, I believe they are identical in function, butnumberpostsis depreciated, so you cannot count on it to be available with the next release of wordpress. – m0r7if3r Apr 25 '12 at 1:41print_r( $wp_filter)` and look at everything, but that's gonna generate a massive list that may or may not be of use to you. – m0r7if3r Apr 25 '12 at 2:57