For example, inside the loop could i do something like this
if lastpost {
}
else {
}
|
|
Change $wp_query to your own query variable if you made a new WP_Query object. |
|||
|
|
|
I've coded up a quick little example for you. Should explain how to get the first and last post in a WP loop.
|
|||
|
|