Custom post type with pagination
Here is the code for display your custom posts with pagination, please install WP-PageNavi plugin for navigation.
<?php $temp = $wp_query; $wp_query = null; $wp_query = new WP_Query(); $wp_query->query('showposts=6&post_type=latest_projects'.'&paged='.$paged); while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <!-- LOOP: Usual Post Template Stuff Here--> <div class="pro_pic"><a href="<?php the_permalink(); ?>"><?php project_gall_pic(); ?></a> <div class="pro_pic_in"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div> </div> <?php endwhile; ?> <?php if(function_exists('wp_pagenavi')) { ?> <?php wp_pagenavi(); ?> <?php } else { ?> <div class="navigation"><p><?php posts_nav_link('∞','«« Previous Posts','Older Posts »»'); ?></p></div> <?php } ?> <?php $wp_query = null; $wp_query = $temp; // Reset ?>