Loading Page 2 of Older Posts
-
Hello all, my website is https://www.CherriesAndClay.com
I’ve mucked around with my theme (dapit_hapon) a fair amount so that posts are displayed in two separate columns on the index page. Posts which are categorized as ‘Etc’ are posted in the center whereas all other categories are posted on the left. In the index.php file I’ve added a second query_posts. The first calling most of the categories starts like this:
<?php if (have_posts()) : ?> <?php query_posts('category_name=debate,events,cheap-as-clay,from-far-and-wide,gift-guide,humour,media,postcards-from-burgundy,restaurantbar-review,retail,sunday-school,tasting_notes,the-musical-equivalent,the-reading-pile,travel,uncategorized,video,weekend-wine-picks,wine-news,wine-reviews,&showposts=10'); ?> <?php while (have_posts()) : the_post(); ?>
And the second starts like this:
<?php query_posts('category_name=etc,&showposts=10'); ?> <?php while (have_posts()) : the_post(); ?>
The only problem now is that if you wanted to look at posts older than the 10 displayed on the main page, the “Previous Entries” link in the bottle left reloads the page as /page/2/ but the entries are exactly the same.
This goes beyond my very basic knowledge of php and I would really appreciate if someone could help me out. Also, let me know if you need to see any of the other files.
Cheers,
Jake
- The topic ‘Loading Page 2 of Older Posts’ is closed to new replies.