• 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="https://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)
  • 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 8 years, 1 month ago by Trieu Vy.
Viewing 1 replies (of 1 total)
  • The topic ‘AMP Problem’ is closed to new replies.