Support » Plugin: Vote It Up » [Plugin: Vote It Up] Limit Voting to a Few Blog Posts

Viewing 1 replies (of 1 total)
  • havenner

    (@havenner)

    Okay I think I figured this one out. Create a post category specifically for posts that you want to have votes for. Then put this code in the single.php (outside the loop, maybe right before <div id=”comments”>:
    <?php if (in_category(‘YOUR CATEGORY NUMBER’)) { ?>
    <?php DisplayVotes(get_the_ID()); ?>
    <?php } else { ?>
    <?php } ?>

    and also in archive.php if you want it to show up on excerpts after: <div id=”post-<?php the_ID(); ?>” class=”posts”>

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Vote It Up] Limit Voting to a Few Blog Posts’ is closed to new replies.