Tangler Discussion Forums

Discuss

Topics

Click a Topicto start discussing

    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...

    2009-08-22 13:46:15.0

    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()); ?>

    2009-08-23 19:02:39.0

    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...

     

    2009-08-24 14:42:57.0

    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?

    2009-08-25 11:23:59.0

    Wrap the table in a check:

    <?php if (in_category('Review')): ?>
    Code Here
    <?php endif; ?>

    2009-08-27 14:01:31.0
To send a message, Join Now (it's quick and free) or Sign In
Edit Topic
Delete Topic
Are you sure you want to delete the topic