Hi Hector,
I have a question related to the same issue. I’d like to remove the current post from the list of popular post.
To make it clear if ‘post1’ is the most popular post, it will show in first position in the sidebar, then I click on the link and visit the ‘post1’ page and I still have the same ‘post1’ in first position in the sidebar. So the most popular post of my blog is linking to itself.
I manged to get only posts from the same category showing with the code below, but I can’t figure out how to exclude the current post. Any idea? Thanks
<?php
$category = get_the_category($post->ID);
$category = $category[0];
if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular("cat=".$category->cat_ID."&range=weekly&order_by=views&limit=4&excerpt_length=55&stats_comments=0"); ?>