• Resolved micadz

    (@micadz)


    I just installed the vote it up widget on my site. I would like my Vote button/bar to appear on the right hand side (same level as title and author). From the installation notes I know I have to put this code in the single.php:
    <?php DisplayVotes(get_the_ID()); ?>

    But where exactly do I put that code so that it shows as decribed above? This is my php screendump:

    <?php
    /**
     *	@package WordPress
     *	@subpackage Grid_Focus
     */
    get_header();
    ?>
    <div id="filler" class="fix">
    	<div id="mainColumn" class="fix"><a></a>
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
    		<div id="post-<?php the_ID(); ?>" class="post">
    			<div class="postMeta fix">
    				<p class="container">
    					<span class="date"><?php the_time('M j, Y') ?><?php edit_post_link(' (Edit)', '', ''); ?></span>
    				</p>
    			</div>
    			<h2><a>" title="<?php the_title(); ?>"><?php the_title() ?></a></h2>
    			<div class="entry">
    				<?php the_content('<p>Continue Reading &raquo;</p>'); ?>
    			</div>
    			<div class="entry meta">
    				<p><span class="highlight">Category:</span> <?php the_category(', ') ?></p>
    				<p><span class="highlight">Tagged:</span> <?php the_tags( '', ', ', ''); ?></p>
    			</div>
    		</div>
    		<div id="commentsContainer">
    			<?php comments_template(); ?>
    		</div>
    		<?php endwhile; else: ?>
    		<div class="post">
    			<h2>No matching results</h2>
    			<div class="entry">
    				<p>You seem to have found a mis-linked page or search query with no associated results. Please trying your search again. If you feel that you should be staring at something a little more concrete, feel free to email the author of this site or browse the archives.</p>
    			</div>
    		</div>
    		<?php endif; ?>
    	</div>
    	<?php include (TEMPLATEPATH . '/second.column.post.php'); ?>
    	<?php include (TEMPLATEPATH . '/third.column.shared.php'); ?>
    </div>
    <?php get_footer(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter micadz

    (@micadz)

    I just installed the Vote it up widget on my site. I would like the vote button/bar to appear on each post (on the frontpage) on the right hand side on the same line as the title/author’s name. I know the code is <?php DisplayVotes(get_the_ID()); ?>. It is just that I don’t know where to put it in the single.php so that it shows where I want. Thank you.

    I’m having a hard time with this one too.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Vote It Up Widget. Where do I put the php?’ is closed to new replies.