Try the following and see how you go..
<?php
global $paged;
global $wp_query;
$temp = $wp_query;
$wp_query = null;
$wp_query = new WP_Query();
$wp_query->query('posts_per_page=10&post_type=your_post_type'.'&paged='.$paged);
while ($wp_query->have_posts()) : $wp_query->the_post();
?>
<!-- do your loop output here, title, content etc -->
<?php endwhile; ?>
<?php previous_posts_link('« Newer') ?>
<?php next_posts_link('Older »') ?>
<?php
$wp_query = null;
$wp_query = $temp;
?>
Related Posts:
- How can i retrieve default post per page value? from settings->reading. And total number of posts?
- Pagination with custom SQL query
- Pagination on a WP_query not showing navigation links
- Different ‘posts_per_page’ setting for first, and rest of the paginated pages?
- How to paginate wordpress [gallery] shortcode?
- paginate_links() adds empty href to first page and previous link
- paginate_links ignore my format
- Custom WP_Query order by post_meta and (author) user_meta
- Query causing load because of SQL_CALC_FOUND_ROWS post counting?
- Pagination with 5 posts per page
- Add and in the header while looping over custom query in page template
- pagination doesn’t show up for custom post type
- Pagination causes error 404 when used with front-page.php
- Paginated pages are showing correct content but pagination links are not
- Pagination wont work with search results template [duplicate]
- Pagination Not working on Home Page with 2 Query
- Best Practice For Querying Grandchildren?
- Pagination not working on static page
- ‘paged’ in wp_query doesn’t work
- Display different number of posts from one category on the different pages
- Pagination not working for category posts
- Search – Ajax – Alter Query Parameters with Pagination
- Two queries on the same page with pagination
- Show single post then all posts (with pagination)
- Add custom search results to main WP search [duplicate]
- WP_Query pagination not working in admin area
- WordPress pagination link always leads to home page
- Pagination working everywhere but the index page
- Create ONE callback for all page templates, post filter queries + paginated pages, triggering pagination via AJAX
- WP_Query ajax loader detect end of posts
- Storing query variable and then using wp_reset_query
- Pagination of a WP_Query Loop in a child-page page template
- How to set pagination to work with ‘/page/’?
- WP_Query Pagination on multiple-loop page breaks WP or doesn’t show up
- WordPress Pagination changes my template
- wp_query ‘s’, search filter with pagination is not working
- Custom Pagination Layout for Elementor widget
- WordPress pagination not working on template search.php
- Cutom wp_query for geolocation search, pagination not working
- Pagination links missing for first link (1) and previous button? How to get pagination links to work?
- Pagination outside of loop
- How to return a 404 when custom query matches nothing?
- Multisite pagination issue by multi query archive 404
- Custom Pagination in Shortcode with WP_Query
- Pagination inside of a edit page
- Avoid repeated post on page 2 when excluding one on page 1
- Pagination for blog posts reloading same page [closed]
- How do I get my custom query to work with search results after the first page?
- Append URL query to next post link in custom query
- Pagination is not working with custom query inside a homepage template
- Display single most recent post in category on every page of category archive
- Include latest author posts with pagination in single template?
- Stomping WP_Query in author archive to facilitate pagination with custom queries
- Page navigation doesn’t seem to work when I add offset?
- I am officially missing something about transient posts
- Determining what post is displayed out of total posts found
- How to filter a static post page with ajax and $wp_query
- WP_Query Pagination
- WP_Query, Paginate by Custom Field
- Reciving Error 404 blog/page/2/
- Why is my pagination /page/2 taking me to index.php?
- duplicated posts when using pagination
- wordpress pagination wont render on custom page template even though its right under the loop like the documentation says so
- How can I have sticky posts while ALSO showing posts from a specific category using one WP_Query?
- Pagination repeating posts on search results
- WordPress Sub Category Archive, Show Extra Empty Page Number in Pagination
- WP_query pagination on frontpage
- Pagination for Category does not work
- paginate_links method doesn’t show second page of my custom wp_query
- Wp_Query Post per page not working?
- 404 page on custom search pagination
- Paging works correctly on local version, but not live?
- Pagination not working in custom loop WP_Query
- Showing the correct number of posts_per_page when avoiding the use of post__not_in
- WordPress pagination not returning posts on second page
- Paginate nested query of child posts
- How to set up pagination for a custom loop on a global template (author.php, tag.php, archive.php?)
- custom query – offset to pagination
- previous_posts_link not working in WordPress pagination
- Pagination not working with WP_QUERY
- WP_Query with meta_value_num and meta_query not paged correctly
- Pagination in custom query in a category page
- Pagination with WP_Query not working
- wp_query pagination links producing 404
- Can’t get pagination to work with this WP_Query loop
- Pagination in custom loop [duplicate]
- Query specific number of posts for each post type in specific order
- Why won’t my paged wp_query work? [duplicate]
- WP_Query breaks pagination
- Pagination doesn’t work for home page custom post type query
- Loop issues when creating custom query for media uploader
- Query multiple taxonomies with pagination
- Pagination in WP query with transient API
- paginate_links() with Custom Taxonomy
- Pagination problem with multiple loops on the same page
- Pagination not working in secondary query
- WP Paginate not working properly
- Search results stuck on page 1
- Pagination only showed when no category is set in wp_query
- taxonomy-{term}.php terms pagination returning 404 after a certain page