Guest User

Untitled

a guest
Feb 21st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <?php global $post;
  2. $args = array('category' => 17);
  3. $custom_posts = get_posts($args);
  4. foreach($custom_posts as $post) : setup_postdata($post);
  5. ...
  6. endforeach;
  7. ?>
  8.  
  9. <?php global $post;
  10. $args = array('category' => 17);
  11. $custom_posts = get_posts($args);
  12. foreach($custom_posts as $post) : setup_postdata($post);
  13. <div class="divA">
  14. </div>
  15. <div class="divB">
  16. </div>
  17. endforeach;
  18. ?>
  19.  
  20. <div class="divA">
  21. Teste 1
  22. </div>
  23. <div class="divB">
  24. Teste 2
  25. </div>
  26. <div class="divA">
  27. Teste 3
  28. </div>
  29. <div class="divB">
  30. Teste 4
  31. </div>
Add Comment
Please, Sign In to add comment