how to display result by '.display_rating_result().' style
-
I wanna display results by ‘.display_rating_result().’ style in loop
now I can see “No ratings yet” for every loop with this writing. (even if I rate)
function get_products_html_grid($post_array=array()){ global $mp; $html=''; //get image width if ($mp->get_setting('list_img_size') == 'custom'){ $width = $mp->get_setting('list_img_width'); } else { $size = $mp->get_setting('list_img_size'); $width = get_option($size."_size_w"); } $inline_style = !( $mp->get_setting('store_theme') == 'none' || current_theme_supports('mp_style') ); foreach ($post_array as $post) { $img = mp_product_image(false, 'list', $post->ID); $excerpt = $mp->get_setting('show_excerpt') ? '' : ''; $mp_product_list_content = apply_filters( 'mp_product_list_content', $excerpt, $post->ID ); $class=array(); $class[] = strlen($img)>0?'mp_thumbnail':''; $class[] = strlen($excerpt)>0?'mp_excerpt':''; $class[] = mp_has_variations($post->ID) ? 'mp_price_variations':''; $html .= '<li class=" '.implode($class, ' ').'"> '.$img.' <div class="caption"> <div class="inner"> <h3 class="mp_product_name title"> ' . $post->post_title . ' </h3> '.$mp_product_list_content.' '.display_rating_result().' <p class="price"> '.mp_product_price(false, $post->ID).' '.apply_filters( 'mp_product_list_meta', '', $post->ID ).' </p> </div></div> </li>'; }
I need your help!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘how to display result by '.display_rating_result().' style’ is closed to new replies.