I have a similar problem. I need to exclude a category from the popularity contest as I use it to display WordPress themes and I don’t want the Popularity: n% to show up on this page. Neither, I want this to appear on my pages.
Alex says on his page:
If you don’t want to edit the .php file, you can add this to your WordPress index.php file:
@define('AKPC_SHOWPOP', 0);
I try to add this line of code to my category page but with no success. I put <?php @define(‘AKPC_SHOWPOP’, 0); ?> on top of my category page (category-49.php). Am I doing something wrong?.
Any ideas? Thanks
I have found a way to fix this.
I add some css on the page where I want to hide popularity contest. For example, on my page category-47.php, I add the following code right after <?php get_header(); ?>:
<style type="text/css">
/*<![CDATA[*/
/* Hide Popularity Contest */
.akpc_pop {
overflow: hidden;
visibility: hidden;
}
/*]]>*/
</style>
It does the trick, though I think there should be another way to do it.