'', 'slide_title' =>'', 'slide_number' => '', 'category' => '', 'type_slide' => '', 'option' => '', 'color' => '', 'type_slide' => '' ), $atts)); $class_center = ''; $class_deflection = ''; $id_ran = rand(1, 99999); $type = ''; //Options slide if ($type_slide) { $type = 'box-dark'; } if ($center_title) { $class_center = 'book-center'; } if ($option == 'horizontal') { $class_deflection = 'book-option2'; ?>
'product', 'posts_per_page' => $slide_number, 'order' => 'DESC' , 'tax_query' => array( 'relation' => 'OR', array( 'taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => $category ), ), ); } else{ $args = array( 'post_type' => 'product', 'posts_per_page' => $slide_number, 'order' => 'DESC' , ); } $loop = new WP_Query( $args ); ?> have_posts() ) : $loop->the_post(); global $product; ?> get_rating_count(); $average = $product->get_average_rating(); ?>
post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_catalog'); else echo 'Placeholder'; ?>
0 ) : ?>
', '' ); ?> ' . $rating_count . '' ); ?>
ID ); ?> ID ); ?>, get_price(); ?>
'product', 'posts_per_page' => $slide_number, 'order' => 'DESC' , 'tax_query' => array( 'relation' => 'OR', array( 'taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => $category ), ), ); } else{ $args = array( 'post_type' => 'product', 'posts_per_page' => $slide_number, 'order' => 'DESC' , ); } $loop = new WP_Query( $args ); ?> have_posts() ) : $loop->the_post(); global $product; ?> get_rating_count(); $average = $product->get_average_rating(); ?>
post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_catalog'); else echo 'Placeholder'; ?>
0 ) : ?>
', '' ); ?> ' . $rating_count . '' ); ?>
ID ); ?> ID ); ?>, get_price(); ?>
'product', 'posts_per_page' => $slide_number, 'order' => 'DESC' , 'tax_query' => array( 'relation' => 'OR', array( 'taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => $category ), ), ); } else{ $args = array( 'post_type' => 'product', 'posts_per_page' => $slide_number, 'order' => 'DESC' , ); } $loop = new WP_Query( $args ); ?> have_posts() ) : $loop->the_post(); global $product; ?> get_rating_count(); $average = $product->get_average_rating(); ?>
post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_catalog'); else echo 'Placeholder'; ?>
0 ) : ?>
', '' ); ?> ' . $rating_count . '' ); ?>
ID ); ?> ID ); ?>, get_price(); ?>
'product', 'posts_per_page' => $slide_number, 'order' => 'DESC' , 'tax_query' => array( 'relation' => 'OR', array( 'taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => $category ), ), ); } else{ $args = array( 'post_type' => 'product', 'posts_per_page' => $slide_number, 'order' => 'DESC' , ); } $loop = new WP_Query( $args ); ?> have_posts() ) : $loop->the_post(); global $product; ?> get_rating_count(); $average = $product->get_average_rating(); ?>
post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_catalog'); else echo 'Placeholder'; ?>
0 ) : ?>
', '' ); ?> ' . $rating_count . '' ); ?>
ID ); ?> ID ); ?>, get_price(); ?>
'product', 'posts_per_page' => $slide_number, 'order' => 'DESC' , 'tax_query' => array( 'relation' => 'OR', array( 'taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => $category ), ), ); } else{ $args = array( 'post_type' => 'product', 'posts_per_page' => $slide_number, 'order' => 'DESC' , ); } $loop = new WP_Query( $args ); $i = 2; ?>
have_posts() ) : $loop->the_post(); global $product; ?> get_rating_count(); $average = $product->get_average_rating(); ?>
'product', 'posts_per_page' => $slide_number, 'order' => 'DESC' , 'tax_query' => array( 'relation' => 'OR', array( 'taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => $category ), ), ); } else{ $args = array( 'post_type' => 'product', 'posts_per_page' => $slide_number, 'order' => 'DESC' , ); } $loop = new WP_Query( $args ); ?> have_posts() ) : $loop->the_post(); global $product; ?> get_rating_count(); $average = $product->get_average_rating(); ?>
post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_catalog'); else echo 'Placeholder'; ?>
0 ) : ?>
', '' ); ?> ' . $rating_count . '' ); ?>
ID ); ?> ID ); ?>, get_price(); ?>