Want to display an image automatically according to post rating
-
Good Day, Can anyone help? I am trying to achieve a rating system similar to that of Rotten tomatoes movie rating site. https://www.rottentomatoes.com/. Is there a plugin i can use to achieve this? Or is there a tweak i can do? What i want to achieve exactly, is to have a picture displayed automatically according to the rating received for a post. Thanks in advance.
-
May want to try this plugin : https://wordpress.org/plugins/wp-postratings/
Thank for the reply. Would try it out, but not sure if it would give me the functionality i require.
Can you re-explain what you mean by “have a picture displayed automatically”?
https://ps.w.org/wp-postratings/assets/screenshot-3.png?rev=1206761What i mean is after an item is rated. And depending on the rating received. Either a picture of a smiling man, sad man, or distressed man will be displayed at the top of that particular post. Thanks.
Sounds like you’ll still need a plugin like wp-postratings, and a layer of custom functionality on top of that. How technical are you with JS?
Hello,
You need to use any review plugin similar to the reference site and customize it as per your requirement. You can not get any plugin which will give you exact result.
You can also take a look into this plugin:
https://wordpress.org/plugins/wp-review/
Thank you.
Thank you all for the reply. I am not so good with javascript. Is there a way you could help me out with the code? thanks.
First step would be to get one of those plugins installed
Would do that now. thanks.
I now have the wp-postrating plugin installed on my website http://wlmfans.club/
Please help.Whereabouts are the ratings on your site?
I inserted this code <?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?>
into index.php, below <?php if (have_posts()) : while (have_posts()) : the_post();
as stated in the directions for installation of the plugin.Weird, I don’t see the ratings. Are you sure that’s the right template for the Home page?
I just added the code to single.php as well. So it apperas at the botom of every post i.e full post.
Okay great, I see it.
Now, what image did you want to implement? You’ll have to be specific and have an image ready that you can use, i.e. image of smiling or sad man. You’ll also need to specify where you want it to appear.
- The topic ‘Want to display an image automatically according to post rating’ is closed to new replies.