$rating_result['count_entries'] is blank
-
Hi
Cant get rich snippets to work.
All is fine but RatingCount is blank.My code in rating-result.php is:
// add aggregate rating
$microdata .= ‘<span itemprop=”aggregateRating” itemscope itemtype=”https://schema.org/AggregateRating”>’
. ‘<span itemprop=”ratingValue”>’ . $rating_result[‘adjusted_star_result’] . ‘</span>/<span itemprop=”bestRating”>5</span>’
. ‘<span itemprop=”ratingCount”>’ . $rating_result[‘count_entries’] . ‘</span>’
. ‘</span>’;ratingValue is working fine so I′m guessing something is wrong here:
. ‘<span itemprop=”ratingCount”>’ . $rating_result[‘count_entries’] . ‘</span>’Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘$rating_result['count_entries'] is blank’ is closed to new replies.