'product',
'meta_key' => '_featured',
'meta_value' => 'yes',
'posts_per_page' => 5
);*/
$feat_args = array(
'post_type' => 'product',
'tax_query' => array(
'relation' => 'OR',
array(
'taxonomy' => 'product_cat',
'field' => 'slug',
'terms' => array( 'pooch-pastries', 'signature-cookies' ),
),
),
'posts_per_page' => 10
);
$featured_query = new WP_Query( $feat_args );
?>
have_posts()) : while ($featured_query->have_posts()) : $featured_query->the_post(); ?>
post->ID ); ?>
get_title(); ?>
get_price_html(); ?>
get_average_rating();
$avg = intval($average);
$num = 5; $no_star = $num-$avg;
if($avg > 0){
for($a=1; $a<=$avg; $a++){
echo ' ';
}
}
if($no_star > 0){
for($b=1; $b<=$no_star; $b++){
echo ' ';
}
}
?>