PWaddict Posted March 31, 2017 Share Posted March 31, 2017 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 More sharing options...
LostKobrakai Posted March 31, 2017 Share Posted March 31, 2017 Add start=0 2 Link to comment Share on other sites More sharing options...
PWaddict Posted March 31, 2017 Author Share Posted March 31, 2017 28 minutes ago, LostKobrakai said: Add start=0 Thanks a lot! Problem solved Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now