Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $params = array(
- 'post_type' => array('product', 'product_variation'),
- );`
- $wc_query = new WP_Query($params);
- if ($wc_query->have_posts()) :
- while ($wc_query->have_posts()) :
- #¿Cómo mantengo los datos??
- endwhile;
- wp_reset_postdata();
- else:
- _e( 'No Products' );
- endif;
Add Comment
Please, Sign In to add comment