How to exclude blog post I'm reading from aside column
On our blog posts we have an aside column which shows the latest 5 blog posts, using
I'm trying to exclude the post your currently viewing from displaying in the aside list. I've got so far...
$postID = PerchSystem::get_var('postID'); perch_blog_custom(array( 'sort' => 'postDateTime', 'sort-order' => 'DESC', 'count' => 5, 'template' => 'blog-post-aside.html', 'filter' => 'postID', 'match' => 'neq', 'value' => $postID, ));
...but it's not working.
How do I pass
perch_blog_custom so it can filter out the current post you're reading from the aside column.
Want to reply to this thread?Login with Perch