Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $temp = $wp_query;
- $wp_query = null;
- $wp_query = new WP_Query();
- $wp_query->query('showposts=12&post_type=solution'.'&paged='.$paged);
- while ($wp_query->have_posts()) : $wp_query->the_post();
- ?>
- <!-- LOOP: Usual Post Template Stuff Here-->
- <div class='single_post_area'>
- <div class='single_post'>
- <a href="#"><?php the_post_thumbnail();?></a>
- <h5><a href=""><?php the_title();?></a></h5>
- <p><?php the_content();?></p>
- </div>
- </div>
- <!-- LOOP: Usual Post Template Stuff Here-->
- <?php endwhile; ?>
- <nav class="pagination_nav">
- <div class="first_nav"><?php previous_posts_link('« Newer') ?></div>
- <div class="second_nav"><?php next_posts_link('Older »') ?></div>
- </nav>
- <?php
- $wp_query = null;
- $wp_query = $temp; // Reset
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement