Hello - can I code something somewhere so that only the "overall ratings", with blank stars, appear on search results? It's a bit messy to have a whole list of categories (with no stars) after the name of each place (http://www.kaypraptaa.com/eatndrink) I'm using the Carrington theme, by the way, which makes things more complicated, but I think I can figure out what to do on that end if I can get some help with the WPRS code. Thanks...
WordPress Template Hierarchy:
http://codex.wordpress.org/Template_Hierarchy
Create a search.php file and that will become the template used for search pages, allowing you to make them different from other pages.
To create an "overall rating" display, I recommend
<?php echo "Overall Rating: " . num_to_stars(get_average_rating()); ?>
Hi - thanks for the code, it works just fine. As for the templates, I only wish Carrington were as easy as all other Wordpress themes! But I've managed to find where to put the code I needed...
Dan- Using the WPRS-Ocean theme with the latest version of the plugin: We want the Review Bar table to only show on posts that are in teh review category. The grey table is showing on every post in every category. Is tehre a fix for this?
Wrap the table in a check:
<?php if (in_category('Review')): ?>
Code Here
<?php endif; ?>
Sending ...