Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Okay, I got a few of these requests to work. The trick was to break up all of the php echos on the wpfp-page-template.php so you can add styling in between commands. In my example, I separated the image and the excerpt of the favoritepost into a table and positioned the title of the post above the image.

    Here’s how it looks: (Note that the post excerpt is called using added code in WordPress’ function.php file found here — need to add this code in order to call the post excerpt when it is outside of the loop):

    [Code moderated as per the Forum Rules. Please use the pastebin]

    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 2 replies - 1 through 2 (of 2 total)