Settings 1
Settings 2
Those are my settings. Note, that Rating Form Position and Rating Result Position has been set to “Do not show”, because I have a template bazar.php site, where I put multi rating code and link in the code. This was working till this June.
The code in the bazar.php site that was working till las month is:
if ($myrows = $wpdb->get_results( ‘SELECT slov.description as hodn, ROUND(AVG(val.value),1) as val, max_option_value as max FROM
wp_mr_rating_item_entry as hodn
join wp_mr_rating_item_entry_value as val
on val.rating_item_entry_id = hodn.rating_item_entry_id
join wp_mr_rating_item as slov
on slov.rating_item_id = val.rating_item_id
WHERE hodn.post_id = ‘.get_the_ID().’
GROUP BY slov.rating_item_id’ )
){
echo ‘<h2>Hodnocení autobazaru podrobně</h2>’;
echo do_shortcode( ‘[mr_rating_result post_id=”444″ no_rating_results_text=”Prozatím nehodnoceno” show_rich_snippets=”false”]’ );
echo'<p>’;
foreach ( $myrows as $row ){
echo ‘<b>’.$row->hodn.'</b>: ‘.$row->val.’/’.$row->max.'<br />’;
}
echo'</p>’;
}
-
This reply was modified 4 years, 4 months ago by cjooy.