Advertisement
delvinkrasniqi

Posts LOOP - WP

Jan 13th, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. $args=array(
  2. 'post_type'=>'product',
  3. );
  4. $result=new WP_Query($args);
  5. if($result->have_posts()){
  6. while($result->have_posts()): $result->the_post();
  7. /*
  8. Post code.
  9. */
  10. endwhile;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement