I think the problem is that the previous_posts_link() and next_posts_link() are using the global $wp_query object. Try changing your code to something like this:
// save the original $wp_query object
$temp = $wp_query;
// create a new $wp_query object
$wp_query = new WP_Query($args);
while($wp_query->have_posts()): $wp_query->the_post();
// output your data here
endwhile;
// display previous and next links
previous_posts_link('Newer');
next_posts_link('Older');
// restore the global $wp_query object
$wp_query = $temp;
Related Posts:
- Pagination not working with custom loop
- Have different number of posts on first page
- Custom post type pagination 404 fix?
- wp_pagenavi() with custom wp_query()?
- How do I Paginate Search Results for Custom Post Types?
- Custom Post Type Pagination Not Working On Archive Page
- Shortcode Displaying Custom Post Types
- Related posts by author pagination not working on the production site
- Secondary loop pagination on custom post type single post gets redirected to first page
- Pagination go to first page if i’m on last post
- Pagination throws 404
- Pretty paged permalinks in custom post type loop
- Pagination with custom loop
- Group list of posts by taxonomy and allow for pagination
- paginate function in archive for custom-post-type
- Pagination problems with multiple custom post type archive pages
- custom post type paging not working past page 3
- posts_nav_link on single post template
- Pagination problem in custom post type used as front page
- Custom Taxonomy archive returns 404
- WP_Query pagination using only numbers instead of /page/1 on URL
- WordPress rewrite my URL when i use pagination
- Pagination links not showing on custom post type admin list
- Pagination on Custom Post Type: 404 Error
- How to load custom post archives sub-pages with ajax?
- pagination redirecting from page number url before page requested
- Pagination on category page with custom post types
- How to add pagination to wp_query [duplicate]
- CPT: if more than X images are in post, use pagination
- Hard code the nextpage tag into my theme?
- Custom post type not displaying all entries
- Pagination of Custom Post Types not Changing Posts
- List all posts in a custom post type with pagination (the correct way)
- Category with post type pagination returns 404
- How To Show All Custom Post Types In A Category Instead Of Pagination?
- Pagination issue on category.php using custom post type query
- Is it possible to to use custom post type types on a page with the same slug somehow?
- WordPress custom post query with pagination
- Custom Theme With Custom Loops
- Custom post type pagination – always return first page
- Cant get paginations on single.php to work with my custom post types
- Pagination custom post type not working with rewrite slug
- Pagination Not Working for Custom Taxonomy with Custom Query – 404 Error
- Custom WP_Query always respond with 200 status even when no entry
- Can’t use pagination with custom taxonomy
- Pagination 404 on Index with custom query
- Custom ordering of CPT items not matching with the ordering of its pagination
- Break up posts per page in two sections
- 404 Page Not Found on /Page/2/ on Tag Page
- How to list custom post types on a custom post type page?
- Custom Post Type Archive Pagination
- Taxonomy rewrite pagination 404
- Custom Post Type Pagination on Single.php?
- Custom post type pagination error
- Pagenavi Plugin and Custom Post Type – Multipage results
- Add pagination to custom single post template
- get_query_var(‘paged’) return 0 in custom category page
- Custom post type paging return home page
- Pagination on custom post type without plugin
- Remove custom taxonamy slug with pagination
- Add Pagination in custom Blog page template
- Custom post type, next and previous links by page title
- Why is my loop not populating the page with my custom taxonomy terms from my custom post type?
- Pagination for custom query returns 404
- Custom post type pagination problem – page 1 and 2 show same content
- Custom Post Type Pagination – not displaying posts
- next_posts_link() always generates second page link on custom post type
- Post navigation doesn’t show (in custom template, custom post type, custom query)
- 2 custom posts types, in their own columns, one pagination for both
- Pagination functions won’t work
- pagination for a custom query
- Custom Pagination based on Custom Post Type
- Paging not working for hierarchical custom post type
- Custom taxonomy in custom post type archive with pagination
- How to Fix Custom WordPress Loop with Pagination on Single Post View?
- why custom post archive gives always no more than 10 posts despite of paging settings?
- Pagination on custom post types
- Custom Post Type Pagination Not Working or Single Posts Displaying?
- 404 error Custom search results page for custom post types with friendly URL
- Pagination in custom loop for custom post type throwing 404 error
- previous_posts_link returns null when querying custom post type
- Custom Post Type Pagination for Bones Theme [duplicate]
- Pagination for a Custom Taxonomy
- Pagination with Custom Post Type
- paging is not working properly on news archives page [duplicate]
- Pagination URL order
- WordPress Load more posts by ajax not working
- Paged within a custom content type template [duplicate]
- Pagination for event query
- Problems with pagination for a custom post type
- WordPress custom post type post and category links 404
- Pagination not working for archive
- Archive page – problem with pagination
- Pagination not working in custom post type
- Pagination not working
- Pagination on category pages using wp_pagenavi causes 404 errors
- CPT Archive Pagination – Page not found
- the_post_navigation in single page with multiple taxonomies
- Query Multiple Post Types and Paginate Newly Created List
- remove pagination from a single blog entry