Producto destacado
Fetured Products
[insert_php]
$args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 2, ‘product_cat’ => ‘producto-destacado-1’, ‘orderby’ => ‘rand’ );
$loop = new WP_Query( $args );
$contador = 0;
while ( $loop->have_posts() ) : $loop->the_post(); global $product;
if ($contador==0) {$active = “active”; } else { $active = “”; }
$contador = $contador+1;
echo ”
$args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 2, ‘product_cat’ => ‘producto-destacado-1’, ‘orderby’ => ‘rand’ );
$loop = new WP_Query( $args );
$contador = 0;
while ( $loop->have_posts() ) : $loop->the_post(); global $product;
if ($contador==0) {$active = “active”; } else { $active = “”; }
$contador = $contador+1;
echo ”
“;
endwhile;
wp_reset_query();
[/insert_php]
Fetured Products
[insert_php]
$args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 2, ‘product_cat’ => ‘producto-destacado-2’, ‘orderby’ => ‘rand’ );
$loop = new WP_Query( $args );
$contador = 0;
while ( $loop->have_posts() ) : $loop->the_post(); global $product;
if ($contador==0) {$active = “active”; } else { $active = “”; }
$contador = $contador+1;
echo ”
$args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 2, ‘product_cat’ => ‘producto-destacado-2’, ‘orderby’ => ‘rand’ );
$loop = new WP_Query( $args );
$contador = 0;
while ( $loop->have_posts() ) : $loop->the_post(); global $product;
if ($contador==0) {$active = “active”; } else { $active = “”; }
$contador = $contador+1;
echo ”
“;
endwhile;
wp_reset_query();
[/insert_php]
Productos em destaque
[insert_php]
$args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 2, ‘product_cat’ => ‘producto-destacado-1’, ‘orderby’ => ‘rand’ );
$loop = new WP_Query( $args );
$contador = 0;
while ( $loop->have_posts() ) : $loop->the_post(); global $product;
if ($contador==0) {$active = “active”; } else { $active = “”; }
$contador = $contador+1;
echo ”
$args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 2, ‘product_cat’ => ‘producto-destacado-1’, ‘orderby’ => ‘rand’ );
$loop = new WP_Query( $args );
$contador = 0;
while ( $loop->have_posts() ) : $loop->the_post(); global $product;
if ($contador==0) {$active = “active”; } else { $active = “”; }
$contador = $contador+1;
echo ”
“;
endwhile;
wp_reset_query();
[/insert_php]
Productos em destaque
[insert_php]
$args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 2, ‘product_cat’ => ‘producto-destacado-2’, ‘orderby’ => ‘rand’ );
$loop = new WP_Query( $args );
$contador = 0;
while ( $loop->have_posts() ) : $loop->the_post(); global $product;
if ($contador==0) {$active = “active”; } else { $active = “”; }
$contador = $contador+1;
echo ”
$args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 2, ‘product_cat’ => ‘producto-destacado-2’, ‘orderby’ => ‘rand’ );
$loop = new WP_Query( $args );
$contador = 0;
while ( $loop->have_posts() ) : $loop->the_post(); global $product;
if ($contador==0) {$active = “active”; } else { $active = “”; }
$contador = $contador+1;
echo ”
“;
endwhile;
wp_reset_query();
[/insert_php]