K2: Rolling Archives Offset
-
I wanted to show only one post on the main page by using the query_posts(‘showposts=1’) function. This worked.
However, the rolling archives does not read this and instead reads the WP-Admin setting of the number of posts displayed and offsets its display based on that. So, If there are 10 posts indicated in the options/reading panel, the rolling archives starts on the 11th post.
I need to have the rolling archives start on the 2nd post.
How do I do this? I have tinkered with the rollingarchives.php’s get_posts(‘offset=’.$paged) and changed it to get_posts(‘offset=1’) but it broke the entire code.
If I set the number of posts on the admin panel to 1, this changes how the results of the search or archive.php are displayed, giving only one post.
Help please.
Thanks.
The topic ‘K2: Rolling Archives Offset’ is closed to new replies.