Hi Jack, to add the vote box to each post, you need to put it in “The Loop” somewhere. I have inserted it in The Loop in four files in my theme — archive.php, index.php, search.php, and single.php.
The complete statement to insert is:
<?php votio_ballot_box(); ?>
For more information on The Loop, see
http://codex.wordpress.org/The_Loop.
As far as displaying a list of posts with the highest ratings, you need to add the following to your sidebar or page:
<ol><?php votio_top_posts() ?></ol>
To see an example of this, you can go to my site at
http://www.officetally.com.
Click the link in the right column called “Highest Rated Episodes.”
Great, thanks.
I actually hired a coder to help me out and I learned what I needed.
The one thing I dont like about votio, is that it appears to rank the posts according to avg. voting number. This means a post with one vote of 5, will beat out a post with 300 votes averaging 4.8. If there were some way to take into account the number of votes, as well as the average result…that would be nice. I would try and make this plugin if I were a coder…but I’m not so all I could do would be to help pay someone to do it…
Hi there, I got the voting boxes working just fine.
I’m having a really tough time getting the toplist working in ONE specific page.
I just don’t know where exactly to put the
<?php votio_top_posts() ?>
code!!!!!
I cannot add it to a page when I write it, just doesn’t work. I’m assuming I need to add it to the page.php file. But I haven’t quite figured it out, since i’m using a different page.php file.
Can someone help me figure out where to put this toplist php code so that it just appears on the page I want it to?
Here’s what my page.php file looks like. Any help would be greatly appreciated.
<?php get_header(); ?>
<?php require(‘sidebar.php’);?>
<div id=”content”>
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<div class=”post”>
<?php require(‘post.php’); ?>
</div>
<?php endforeach; else: ?>
<?php _e(‘Sorry, no posts matched your criteria.’); ?>
<?php endif; ?>
<p align=”center”><?php posts_nav_link() ?>
<div class=”split”></div>
<br>
</div>
<?php require(‘rightbar.php’);?>
<?php get_footer(); ?>
</div>
</body>
</html>