Can't get IMDb:s official HTML rating plugin to work!
-
Hi,
I’m running a movie site and I’m trying to ad the IMDb rating beneath my movie reviews.
I found out that IMDb have their own plugin that generates a frequently updating rating for a movie of your choice (https://www.imdb.com/plugins). Unfortunately my WP-skills and computer skills are limited.This is the HTML code for the IMDb rating of “Mustang” (2015):
<span class=”imdbRatingPlugin” data-user=”ur22773073″ data-title=”tt3966404″ data-style=”p4″><img src=”https://g-ecx.images-amazon.com/images/G/01/imdb/plugins/rating/images/imdb_31x14.png” alt=” Mustang
(2015) on IMDb” />
</span><script>(function(d,s,id){var js,stags=d.getElementsByTagName(s)[0];if(d.getElementById(id)){return;}js=d.createElement(s);js.id=id;js.src=”https://g-ec2.images-amazon.com/images/G/01/imdb/plugins/rating/js/rating.min.js”;stags.parentNode.insertBefore(js,stags);})(document,’script’,’imdb-rating-api’);</script>The plugin is HTML-based and I can’t seem to get it work in my posts. Do I need to install another plugin for this?
I’ve googled around quite a bit but I just don’t get it.
Cheers
Eric
- The topic ‘Can't get IMDb:s official HTML rating plugin to work!’ is closed to new replies.