Archive does not work anymore (displays only the two most recent posts)
-
First of all I’d like to say I’m really bad at PHP and anything I do, I do by trial and error. Therefore I always face these sort of simple problems. Anyway…
I made a website with an archive that displays the 100 most recent posts using
<?php global $more; $more = 0; query_posts('showposts=100');
The website’s front page, however, was limited to two posts. That I did through the WordPress settings, where I set the limit of posts on front page to two.
This all worked great. No problems whatsoever. Well, now that I did a second website where I used the exact same code, it won’t work. The second website is otherwise identical to the first, but it has two separate archives that divide the posts into two different categories. The other one shows general news and the other (football) games news. For some weird reason these archives will only show two most recent posts, just like on the front page. When I go to WordPress settings and change the limit of posts on front page to, for example, three, the archives also show three posts.
The code I have on the second website is this (the only difference is the cat=3)
<?php global $more; $more = 0; query_posts('cat=3', 'showposts=100');
So my question is, why does the showposts=100 work on the first website, but not the second?
- The topic ‘Archive does not work anymore (displays only the two most recent posts)’ is closed to new replies.