How to show stars on a search listing
-
I am using Pods. I have created pods post types for business type and business. I am capturing star ratings for businesses. On the business type post page I show the list of related businesses. I list these businesses using a Pods template – see code below.
I want to show the overall rating or a read only visitor rating next to each business. But when I put in the short code [yasr_visitor_votes postid = “{@businesses.ID}”] the page just shows the short code, not the rating e.g. – [yasr_visitor_votes postid = “393”]. I also tried to put this short code on a stand alone with page a specific postid I knew was valid – this had the same effect. Why doesn’t this work? The same is true when I use the overall rating shortcode[if businesses]
[each businesses]
<div class=”flex-container”>
<div style=”float: left; width: 33%”>
{@businesses.post_title}
</div>
<div style=”float: left; width: 33%”>
{@phone_number}
</div>
<div style=”float: left; width: 33%”>
{@website_address}
</div>
[/each]
[/if]
- The topic ‘How to show stars on a search listing’ is closed to new replies.