I'm using the WP-PostRatings plugin and I'm trying to make something like a "Highest Rated For This Week" feature. Is there a way to do this, by limiting the highest rated ones displayed to only the past week? Or past month, or whatever.
I looked around and this seemed like it might be useful:
<?php if (function_exists('get_highest_rated')): ?>
if ( (current_time(timestamp) - get_the_time('U') - (get_settings('gmt_offset') * 3600) ) < $mylimit)
<?php get_highest_rated('post', 5); ?>
<?php } ?>
<?php endif; ?>
I found that edit for another function on some other thread, and thought it might work, but it's not working for some reason.
Any help is greatly appreciated :) Thanks