Skipping the current entry
- Published
- about 9 months ago
- by
- with
- 0 Comments
Sometimes when using the <pop:entries> tag you might want to skip the current entry.
A few cases where this would be usefule is when showing the latest posts in the permanent sidebar of a blog or showing other entries from the same category as related posts.
Now you can easily skip the current content from any content listing by using skip="current". Here's an example of showing the 5 latest blogposts, not including the post currently displayed:
<pop:entries from="blog" limit="5" skip="current">
<a href="<pop:permalink/>"><pop:title/></a>
</pop:entries>