How can I recognize my last post on the Loop
-
Hi, I’m using The Unstandard theme. It displays posts with images using custom fields. On the main page it uses this to start querying for posts:
<?php $top_query = new WP_Query('showposts=1'); ?>
and then it uses this to show the rest (8 posts)
<?php query_posts('showposts=9'); ?>
The image for the first post (the last i’ve written, of course) is bigger than the 8 other posts that are displayed. All great, but since it doesn’t use the Loop for this, I can’t have “Next or Previous Entries” buttons. Well, I can have them but they don’t work.
Soooooo…
I want to be able to recognize my last post on the loop so I can put a bigger image for it, and smaller images for the rest.
I wonder if I’m also able to get an impair number of posts only for the main page and any next or previous pages get pair numbers of posts. This, since only the main page has 1 post that has a double size image….
Thanks! and hope it’s clear and simple!
- The topic ‘How can I recognize my last post on the Loop’ is closed to new replies.