• I’ve got the plugin installed and activated, but I’m a bit lost as to where to put the code snippet used to make the voting bar show up. I understand it goes in “the loop”, but I’m not quite sure where to find the code for the loop and where to stick the code snippet once I get there.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Thread Starter tmjm3714

    (@tmjm3714)

    Gotcha! I don’t know where my brain was that I couldn’t figure that out, too little sleep will do that to ya!

    Now I have another question; is there any way I can change the graphic for the bar? I don’t mind that bar itself, but I would like it to be a little bigger so that my visitors don’t miss it. In the futute I might decide to use a different pictoral representation for the bar, but for right now having the bar bigger would help.

    You can adjust the bar size by editing the CSS style sheet. You may need to experiment with the widths and heights to get the desired size.

    Hi sorry guys..

    I am using 2.7.1 and I have no idea where to insert that code..

    Please could you guide me

    thanks

    gibby

    Example of the loop with the vote button in it:

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
     <!-- If the post is in the category we want to exclude, we simply pass to the next post. -->
     <?php if (in_category('3')) continue; ?>
    
     <div class="post">
    
      <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    
      <small><?php the_time('F jS, Y'); ?></small>
    
      <div class="entry">
        <?php the_content(); ?>
        <?php DisplayVotes(get_the_ID()); ?>
      </div>
    
      <p class="postmetadata">Posted in <?php the_category(', '); ?></p>
     </div> <!-- closes the first div box -->
    
     <?php endwhile; else: ?>
     <p>Sorry, no posts matched your criteria.</p>
     <?php endif; ?>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘where to put the code?’ is closed to new replies.