HighlandsMan
Forum Replies Created
-
Forum: Plugins
In reply to: [HMS Testimonials] Rich snippet issuesThe error occurred on my site.
Parse error: syntax error, unexpected ‘<‘ in /home/aeroflow/public_html/wp-content/plugins/hms-testimonials/admin.php on line 4002
Maybe I can email you the edited admin.php file?
Thank you again,
Paul HForum: Plugins
In reply to: [HMS Testimonials] Rich snippet issuesHi Jeff I tried the above with no luck. Put the code above in the variable which controls the image to be displayed. Here is the altered code. Starting at line 4000 in the plugin’s admin.php file.
if ($testimonial[‘rating’] == 1) {
$myvariable = “<img src=’http://www.breastpumps.aeroflowinc.com/wp-content/uploads/sites/11/2013/11/1-star.png’ alt=’1′>”;
}
else if ($testimonial[‘rating’] == 2) {
$myvariable = “<img src=’http://www.breastpumps.aeroflowinc.com/wp-content/uploads/sites/11/2013/11/2-stars.png’ alt=’2′>”;ETC………….. for each through all 5 ratings………….
Then:
if ( isset($testimonial[‘rating’]) && ($testimonial[‘rating’] != 0)) {
$builder .= ‘<div class=”rating” itemprop=”reviewRating” itemscope itemtype=”http://schema.org/Rating”>’.
‘<meta itemprop=”worstRating” content=”1″ />
<meta itemprop=”bestRating” content=”5″ />’ . apply_filters(‘hms_testimonials_system_rating’, ‘<span itemprop=”ratingValue” data-rating=”‘ . $testimonial[‘rating’] . ‘”>’ . $myvariable . ‘</span> </span>’) . ‘</div>’;
}
break;That is the working code. My attempts were to put in the “itemprop” info in “$myvariable” but it was unsuccessful.
Any help would be appreciated.
Thank you,
PaulForum: Plugins
In reply to: [HMS Testimonials] Rich snippet issuesHi Jeff,
Here is a link to the review listings:
http://www.breastpumps.aeroflowinc.com/customer-reviews/
Thank you,
Paul HWorked like a charm! Thank you!