Want to display latest 5 posts except current one
I want to display on the sidebar the last 5 postings. However, if they are viewing an individual post, and that individual post HAPPENS to be in the last 5 posted, I don’t want it to appear in the list.
So basically, on the homepage, it will show the last 5 postings with nothing special going on.
On one of the individual pages, I want the current one they are viewing stripped out.
How can I do this for Word Press?
I guess it might have something to do with get_posts()
- The topic ‘Want to display latest 5 posts except current one’ is closed to new replies.