swillicott
Member
Posted 2 years ago #
Does Anybody know why the following code is actually returning 4 posts rather than 3 as specified? :
<?php query_posts('showposts=3&cat=-4'); /* Specifies only 3 posts shown */ ?>
If I change it to showposts=2, is displays 3 and so on??
Any Ideas?
Thanks
Try:
<?php query_posts('posts_per_page=3&cat=-4'); /* Specifies only 3 posts shown */ ?>
swillicott
Member
Posted 2 years ago #
Hi Esmi,
Yeah, tried that and it is still doing he same thing!
The only way I can get it to show the right amount of posts is to change the -4 section?
Any other ideas?
Thanks