Title: AMP Problem
Last modified: January 9, 2017

---

# AMP Problem

 *  [Chekki](https://wordpress.org/support/users/chekki/)
 * (@chekki)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/amp-problem-2/)
 * Hi,
 * AMP results will not shown be longer with your plugin. The problem is caused 
   by this block of code which is not valid AMP:
 *     ```
       <div class="kksr-legend"><div vocab="http://schema.org/" typeof="Blog"> <div property="name" class="kksr-title">Boxschuhe Test | 6 Boxstiefel für Damen & Herren unter 110 € im Vergleich</div> <div property="aggregateRating" typeof="AggregateRating"><span property="ratingValue">5</span> (100%) <span property="ratingCount">14</span> votes            <meta property="bestRating" content="5"/><meta property="worstRating" content="1"/></div></div></div>
       			    <!-- kksr-legend -->
       ```
   
 * Any idea to fix it within your plugin? I have to disable your plugin until there
   is a solution.
 * Hope you can help me.
 * Best regards,
 * Chekki

Viewing 1 replies (of 1 total)

 *  [Trieu Vy](https://wordpress.org/support/users/zztalano1zz/)
 * (@zztalano1zz)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/amp-problem-2/#post-8686146)
 * If you using plugin AMP of Automatic, here’s how to fix it:
    Go to **wp-content
   => plugins => kk-star-ratings =>** open file **index.php** Find
 *     ```
       public function markup($id=false)
       		{
       			$id = !$id ? get_the_ID() : $id;
       			if($this->exclude_cat($id))
       			{
       				return '';
       			}
       ```
   
 * Replaced
 *     ```
       public function markup($id=false)
       		{
                           if(get_query_var('amp')) {
                              return '';
                           }
       			$id = !$id ? get_the_ID() : $id;
       			if($this->exclude_cat($id))
       			{
       				return '';
       			}
       ```
   
 * Clear cache if you using plugin cache.
    -  This reply was modified 9 years, 5 months ago by [Trieu Vy](https://wordpress.org/support/users/zztalano1zz/).

Viewing 1 replies (of 1 total)

The topic ‘AMP Problem’ is closed to new replies.

 * ![](https://ps.w.org/kk-star-ratings/assets/icon-256x256.jpg?rev=2140680)
 * [kk Star Ratings - Rate Post & Collect User Feedbacks](https://wordpress.org/plugins/kk-star-ratings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/kk-star-ratings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/kk-star-ratings/)
 * [Active Topics](https://wordpress.org/support/plugin/kk-star-ratings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/kk-star-ratings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/kk-star-ratings/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Trieu Vy](https://wordpress.org/support/users/zztalano1zz/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/amp-problem-2/#post-8686146)
 * Status: not resolved