Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php global $post;
- $args = array('category' => 17);
- $custom_posts = get_posts($args);
- foreach($custom_posts as $post) : setup_postdata($post);
- ...
- endforeach;
- ?>
- <?php global $post;
- $args = array('category' => 17);
- $custom_posts = get_posts($args);
- foreach($custom_posts as $post) : setup_postdata($post);
- <div class="divA">
- </div>
- <div class="divB">
- </div>
- endforeach;
- ?>
- <div class="divA">
- Teste 1
- </div>
- <div class="divB">
- Teste 2
- </div>
- <div class="divA">
- Teste 3
- </div>
- <div class="divB">
- Teste 4
- </div>
Add Comment
Please, Sign In to add comment