Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $mainquery = new WP_Query(array(
- 'post_type' => 'smi',
- 'order' => 'DESC',
- 'posts_per_page' => -1
- ));
- if ( $mainquery->have_posts() ) {
- while ( $mainquery->have_posts() ) {
- $mainquery->the_post();
- ?>
- Блаблабла
- <?php }
- } else {
- // no posts found
- }
- /* Restore original Post Data */
- wp_reset_postdata();
- ?>
Add Comment
Please, Sign In to add comment