Title: Amp problems
Last modified: December 15, 2016

---

# Amp problems

 *  Resolved [foodstyling](https://wordpress.org/support/users/foodstyling/)
 * (@foodstyling)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/amp-problems/)
 * I use the plugin on wordpress 4.7 with Twenty sixteen with shortcode on posts.
   Everything works fine,but with amp I get huge stars and a spinning loading…
    
   Is there a way to fix that problem? I disabled the plugin, but made a screenshot
   [https://www.foodstyling.be/images/images2016/wp-ratings](https://www.foodstyling.be/images/images2016/wp-ratings).
   Thanks in advance for a solution.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/amp-problems/#post-8556351)
 * I am guessing maybe you should not use the shortcode but use php code and insert
   it into your theme. In this way, it will not get rendered on AMP
 *  Thread Starter [foodstyling](https://wordpress.org/support/users/foodstyling/)
 * (@foodstyling)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/amp-problems/#post-8556490)
 * I tried that solution, but it gives a fatal error when I put the code in index
   php. I am using cloud flare,could that be problem?
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/amp-problems/#post-8558481)
 * Did you put the code correctly, what is the code you put in? If you are not familiar
   with it, I would suggest hiring a dev to do it.
 *  Thread Starter [foodstyling](https://wordpress.org/support/users/foodstyling/)
 * (@foodstyling)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/amp-problems/#post-8558736)
 * I could get the code `<?php if(function_exists('the_ratings')) { the_ratings();}?
   >`
    to work without error at the end of header.php Thanks for your help!
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/amp-problems/#post-8558980)
 * That is because of the `<?php ?>` code. Try to paste `if(function_exists('the_ratings')){
   the_ratings(); }` within the body
 *  Thread Starter [foodstyling](https://wordpress.org/support/users/foodstyling/)
 * (@foodstyling)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/amp-problems/#post-8559028)
 * Thanks, i’ill try

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Amp problems’ is closed to new replies.

 * ![](https://ps.w.org/wp-postratings/assets/icon.svg?rev=978014)
 * [WP-PostRatings](https://wordpress.org/plugins/wp-postratings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-postratings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-postratings/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-postratings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-postratings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-postratings/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [foodstyling](https://wordpress.org/support/users/foodstyling/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/amp-problems/#post-8559028)
 * Status: resolved