Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $args=array(
- 'post_type'=>'product',
- );
- $result=new WP_Query($args);
- if($result->have_posts()){
- while($result->have_posts()): $result->the_post();
- /*
- Post code.
- */
- endwhile;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement