I’ve got this code to display the ratings/reviews that have been left by visitors:
{exp:rating:entries}
{if count == 1}
<hr />
<h2>What Other Golfers Think of This Course</h2>
{/if}
<div id="reviews" class="clearfix">
<div class="reviewerInfo">
<p class="strong">{rating_name}</p>
<p class="reviewsStarsAuthor">{stars}{rating}{/stars}</p>
<p class="reviewsDate">{rating_date format="%F %j, %Y"}</p>
</div>
<div class="review">
<p class="reviewTitle">{review_title}</p>
<p class="reviewBody">{review}</p>
<p class="reviewHelpfulStats">
{exp:rating:rating_rev_stats rating_id="{rating_id}"}
{y} golfers thought this review was helpful.
{/exp:rating:rating_rev_stats}
</p>
<p class="reviewHelpful">Was this review helpful to you? <a href="#" title="Yes">Yes</a> | <a href="#" title="No">No</a></p>
</div>
</div>
{/exp:rating:entries}
What I’m attempting to do is only show the <h2> tag when there is one or more entries. I’ve done similar things using the {if count == 1} conditional before but only with weblog:entries. I’m not sure it works with rating:entries?
I tried {if count >=1} as well with no luck. Using these the conditionals, completely removes the heading even when there are reviews (when it should show).
