Jump to content

Pages find with pagination issue


PWaddict
 Share

Recommended Posts

I'm using on _aside.php the below selector to display the latest post on the entire site and it's working fine but when I'm viewing a page2, page3, etc I don't see the latest post but the next one in the array. How can I fix it?

$posts = $pages->find("template=posts, limit=1, sort=-date");

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...