You need to set up query for pagination, look at this example :
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
'post__in' => $ids,
'post_type' => 'product',
'paged' => $paged,
'posts_per_page' => 15);
query_posts($args);
Related Posts:
- Pagination not working with custom loop
- WP_Query Pagination on single-custom.php
- Have different number of posts on first page
- next_post_link() not working for single custom post type post
- wp_pagenavi() with custom wp_query()?
- Pagination with custom post type not working
- Custom post type archive 404’s with paginate_links
- Number of pages – multiple (custom) post types
- Multiple Paginations on one Page
- Custom permalink with pagination
- Custom Post Type Rewrite Rule for Author & Paging?
- Newer/Older posts links display same posts on every page
- Custom wp_query pagination – next_posts_link() or wp_pagenavi() always empty
- Pagination with custom loop
- Group list of posts by taxonomy and allow for pagination
- Custom post type archive with pagination?
- Pagination on a custom page template
- Pagination problems with multiple custom post type archive pages
- Display “Post 2 of 4” on single post page?
- 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
- Pagination with custom post types results in 404 issues
- Custom query form submission pagination
- Paginated Taxonomy Term Archive including one post per term
- Pagination links not showing on custom post type admin list
- Pagination on Custom Post Type: 404 Error
- Pagination in a Shortcode. Get_next_posts_link not working but get_previous_posts_link works fine right next to it
- 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
- Archive template for custom post type only lists first 10
- CPT: if more than X images are in post, use pagination
- Pagination is not working in custom post type
- Custom post type not displaying all entries
- Custom post type (with parent-child relationship) singular page with pagination
- How do I move/order posts with a tag to the end?
- Add Pagination on Custom Post Type Archive
- Woocommerce search pagination not working
- How To Show All Custom Post Types In A Category Instead Of Pagination?
- Custom Post Type Pagination Paginates Only in URL Structure
- 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 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
- Custom Post Type Pagination on Single.php?
- Custom post type pagination error
- Previous / Next Links For Custom Post Type Sorted By Meta_Value
- Custom archive page for custom taxonomy and pagination issue
- Custom post type paging return home page
- Pagination on custom post type without plugin
- pagination problem listing custom post types of taxonomy in wordpress
- Permalink for custom post type pages not working
- How to display custom post type pagination buttons when processing AJAX request
- 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 – not displaying posts
- Pagination with a custom post type
- next_posts_link() always generates second page link on custom post type
- Pagination URL in Custom Content Type
- 2 custom posts types, in their own columns, one pagination for both
- Pagination functions won’t work
- pagination for a custom query
- 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
- Pagination for a Custom Taxonomy
- Pagination URL order
- WordPress Load more posts by ajax not working
- Paged within a custom content type template [duplicate]
- Pagination for event query
- 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
- Pagination not working on custom post type archive
- the_post_navigation in single page with multiple taxonomies
- Archive pagination – second page shows exactly the same posts
- Query Multiple Post Types and Paginate Newly Created List
- “Page not found” while on page 2 from pagination menu
- Issues with Ajax Pagination and Filtering