Hi,
Thank you for this awesome little utility.
I’m having two small issues while using it.
1. Ajax loaded posts
If you load your contents via Ajax, the function responsible for turning the DOM elements into a rating component never run, so the elements are never initialised. There should probably be hook we could run on these occasions to have those contents initialise.
2. Non-standard Search Pages
I’m using SearchWP, which allows to build custom vertical search engines, that can have a frontend build of regular WordPress pages. Because of this, and since I’m limiting the feature to another custom post type (other than pages), the plugin never initialises on these result pages. The workaround was to activate ratings for pages and use a custom hook, which is likely not ideal.
Thanks!
]]>Hi, I’m wondering if its possible to make it so that users who are logged are able to change their rating? This plugin would be perfect if this was possible.
Thanks!
Thomas
How can I sort my posts by rating from the highest to the lowest for all categories
]]>Hi, I am using you plugin.
How can I remove the stars below the progressbar, please check https://schaschlik-grill.de/meine-empfehlungen/thueros-baikal-k-3060-e-holzkohle-schaschlikgrill/
Actually these should not be there.
Thank you in advance
]]>HI, when i vote via login it is working but without login it is not working, even i click on “Allow unregistered users to vote” but stil the problem.
you can try to vote, it is not working
https://allinallnews.com/apple/use-apple-watch-apple-tv-remote-control
take a look at the screen short of setting
https://pho.to/AEMS2
Hi, sorry for my english.
I have a problem. On my register-site (buddy press form) is error: https://zapodaj.net/335ccd983130d.jpg.html
On other site this problem no exist. I want, that remove this site with Post Ratings. How I do this?
Best regards, Luk
Update blew out my ratings.
I was pleased to see an update for this handy plugin, which I’ve been using on a business directory for a few years, now. Some of my posts and listings have 1000+ ratings.
After I updated today, all the ratings blew out.
What I used to see was a row of 5 stars, in yellow, depending on the average rating, and immediately after was the number of votes and the average score.
After the update, the stars were gone completely, and only the text information (votes, score) remains. For instance 4.00 avg. rating (90% score) – 13 votes.
I opened up the post and where the custom fields typically displayed that numerical information, I reentered the data in the custom fields. When I did that, the stars appeared, but they were greyed out. When I click on them, I cannot vote — no votes will register by me, or any of my staff on different computers.
After that, I cleared cache, and perhaps that the worst thing I could have done, because now, every post (300+), every business listing (1200+) and every page have 0 votes, 0 stars, and 0 ratings, and the stars are all grey and do not respond to click votes.
I’ve had to deactivate the plug-in because it makes my 17-year website look like no one uses it or votes, and this surely is misleading and distressing.
What happened, do you think?
]]>Before using print PostRatings()->getControl();
has failed.
I cannot leave this plugin, please help me.
]]>Hello there, I’ve been using this plugin for years now and I like it a lot, I was wondering though, are there going to be any future updates to it?
After the latest WordPress update I think that it’s stopped working.
I am not exactly sure if it’s part of my caching methods but it was working fine before that so I was wondering if there’s a compatibility issue with it.
Any update from you would be awesome ??
Thanks!
]]>I have a loop of posts setup as a function in functions.php and within this I am trying to return the rating value for each post. When I use the loop outside of functions.php (hardcoded to the page) it works just fine. Only when the loop is used as a function in functions.php does it returns nothing. Anyone know why this might be happening?
function TheAdListTax ( $Tax , $Term , $BrandName , $BrandLink ) { ?>
<div class="ListOfAdsWrap">
<div class="ListOfAds NewAds">
<h2 class="ListOfAdsLabel"><a href="<?php echo $BrandLink; ?>">New <?php echo $BrandName; ?> Commercials</a></h2>
<ul class="AllAdsInList">
<?php
$args = array(
'showposts' => 4,
'post_status' => 'publish',
'tax_query' => array(
array(
'taxonomy' => $Tax,
'field' => 'slug',
'terms' => $Term
)
)
);
$NewPosts = new WP_Query(); $NewPosts->query($args);
while ($NewPosts->have_posts()) : $NewPosts->the_post(); ?>
<?php
$TheRating = $post->rating;
$TopRating = 5;
$RatingPercent = ($TheRating / $TopRating) * 100;
$RoundRating = round($RatingPercent);
?>
<li class="AdInTheList">
<div class="Stretch">
<div class="AdInListImage">
<?php the_post_thumbnail('medium'); ?>
</div>
<div class="AdInListInfo">
<div class="TopRow">
<div class="ReviewCount"><?php echo get_comments_number($Post->ID); ?> Reviews</div>
<div class="ReviewStars">
<div class="RatingWrap">
<div class="TheRating" style="width:<?php echo $RoundRating; ?>%;"></div>
</div>
</div>
</div>
<div class="AdInListTitle"><?php the_title();?></div>
<div class="SJbtns">
<ul>
<li class="BlueBtn"><a href="<?php the_permalink(); ?>">Watch It</a></li>
<li><a href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>" target="_blank">Share It</a></li>
</ul>
</div>
</div>
</div>
</li>
<?php endwhile; wp_reset_query(); ?>
</ul>
<div class="Clear"></div>
</div>
</div>
<?php }
]]>
Hey there! Thanks by the awesome plugin!
I have a suggestion: add an option to entry for the image size. In this way, the styling options would stay perfect!
I just change the value “16” in lines 39 and 40 of the file “post-ratings-control.php”.
With that new option, this value can be dynamic ??
]]>Hello, I am trying to get this to work, but when I place the shortcode into a post, it will break the recipe markup and allow the google testing tool to see only the star rating while wipe away all other things from the snippet.
How should I nest it?
sample page here
Is it that microdata and microformat cannot stay together?
]]>I am looking for a function that returns the average rating and total number of ratings
get_rating_avg($post_id) {
//return average rating + total number of ratings of that post ID in array
}
]]>Hi,
I want to show in my homepage only the average rating of my posts.
I manage to display all the attributes with this code:
<?php echo PostRatings()->getControl(); ?>
Does anyone have a solution with php?
PS: I don’t want to hide elements with css.
Thanks
]]>Hi Guyz,
Appreciate if anyone could help me on this. I found the script here but this doesn’t seems to work.
I injected below script in post-ratings/post-ratings.php. I tick and untick post select in the settings. but didn’t work.
add_filter(‘post_ratings_visibility’, ‘rate_only_my_category’);
function rate_only_my_category(){
$categories = get_the_category();
foreach($categories as $category)
if($category->name === ‘articles’) return true;
// don’t display
return false;
}
Please help
]]>How do you align the ratings to the center? I inspected the element and tried a couple different ways but it doesn’t seem to be working. Anyone happen to know how to do this?
]]>Hello,
In the widget I would like to be able to select the category for popular posts rather than from all posts. Is this possible?
I appreciate any help ??
]]>Hi there,
I really like this plugin but I need to show images with the top/popular posts. Is there a way to do this?
I appreciate any help ??
]]>Hello,
can someone tell me how I can geht the top Rates Postes in a BETWEEN date?
Cheers
Denis
Hello,
I recently switched my theme and now I am having an issue with post ratings that I was not having before. I’m getting some strange numbers popping up on the left side where my background is. I attached a screen shot below.
Thanks.
]]>Hello,
can someone please tell me how I can add the featured image of the post to the top rated widget?
I think this will look even more cooler.
Can someone please help me?
Cheers,
Denis
Hi,
As the title said, I am having a big problem with my list of top ratings. Everything was working fine for a long time, it was perfect and customisable so I made exactly something I wanted to do.
But this weekend, pof! I dont know exactly what happened, I don’t touch anything, no particular plugin update, ratings are still working BUT now my list of top ratings show nothing.
This is what I get when I use debug mode :
WordPress database error: [Subquery returns more than 1 row]
SELECT *, (votes / (votes + 1)) * rating + (1 / (votes + 1)) * 3.71567672833 AS bayesian_rating FROM ag2013_posts LEFT JOIN( SELECT DISTINCT post_id, (SELECT CAST(meta_value AS DECIMAL(10)) FROM ag2013_postmeta WHERE ag2013_postmeta.post_id = meta.post_id AND meta_key ='votes') AS votes, (SELECT CAST(meta_value AS DECIMAL(10,2)) FROM ag2013_postmeta WHERE ag2013_postmeta.post_id = meta.post_id AND meta_key ='rating') AS rating FROM ag2013_postmeta meta ) AS newmeta ON ag2013_posts.ID = newmeta.post_id WHERE post_status =
And here is the end of my small knowledge. Seems something is wrong in the database, and I dont know what is this “extra row”, I dont understand at all ?? .
Where to check to fix this ? I dont want to destroy everything in my database, for now…
Please help me ??
]]>Hi,
I’m hoping someone can help me with this. I was wondering, is there a way to have W3 Total Cache NOT cache the Post Ratings? Right now, a user rates a post and then when the page is refreshed it’s as if they never rated it. Then, when they go to rate it again, an error message comes up that says “You Can Not Rate This Post.” I’m 99.9% sure it’s because W3 Total Cache has cached the rating.
If someone has a way to do this, I would be very grateful! I’m a fan of this plugin, and would like to keep using it if I can.
My site is https://www.marketmenot.com if you need to reference it.
Thanks in advance.
]]>Stars are not displaying in WP 3.7.x.
Developer is not around here too…
Hay, i have problem whit this plugin.
This is my problem – https://oi40.tinypic.com/2hhf0xw.jpg
I cannot vote nothing!
the stars stay in one place and not light in orange.
I don’t change nothing in the codes.
Thanks all
Admins?
hi,
how can i put the post-image as thumbnail in the top ten widged?
and maybe delete the %?
Is there a way to exclude a category?
cheers,
denis
Hi.
This plugin is broken.
I put code into my SINGLE.PHP file, but ratings are not displayed.
With Firebug I can see that script is not loaded on posts.
Any suggestions?
Javascrip / Ajax not suddently not working anymore since WP version 3.6.
Dont kwnow why…
]]>I have installed the plugin and it works nicely. However when I sign in as a different user I cannot vote as the previous star rating remains and no new vote can be registered. What am I doing wrong? Thx
]]>Hi,
I hope this beautiful plugin is not too dead and someone can help me.
I am actually displaying a list of top rated posts on a special page, with something like that :
$arguments = array(
'post_type' => 'custom',
'number' => 50, // max. number of posts to retrieve
'offset' => 0, // offset from where to start
'sortby' => 'bayesian_rating', // bayesian_rating, rating or votes
'order' => 'DESC', // ASC or DESC
'date_limit' => 0, // date limit in days
);
$results = PostRatings()->getTopRated($arguments);
foreach($results as $post){
...
This is working fine. The result of my code makes the request a bit heavy but necessary, and I am using cache to solve that. Anyway, now the problem is I want to filter this “top posts” with a term from a custom taxonomy. I tried theses lines in my arguments :
'custom-tax' => 'term',
or
'tax_query' => array(
array(
'taxonomy' => 'custom-tax',
'field' => 'slug',
'terms' => 'term'
)
)
Both are not working of course. There is probably other solutions I not find yet, but maybe it is just impossible to do this request with Post Rating plugin ?
Please help me ??
]]>