You have to use $paged
variable like this :
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$posts = get_posts(array(
'post_type' => 'product',
'taxonomy' => $category->taxonomy,
'term' => $category->slug,
'posts_per_page' => 10,
'paged' => $paged
));
Related Posts:
- Pagination throws 404 error on custom taxonomy archive pages
- Pagination throws 404
- custom post type paging not working past page 3
- Custom Taxonomy archive returns 404
- Paginated Taxonomy Term Archive including one post per term
- Custom Post Type Pagination & duplicate posts
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Repeating posts when paginating random posts
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- Pagination for Custom Taxonomy Page [duplicate]
- How do I move/order posts with a tag to the end?
- Custom taxonomy rewrite give pagination 404
- Custom Post Type Pagination Paginates Only in URL Structure
- Custom post type pagination 404
- Pagination Not Working for Custom Taxonomy with Custom Query – 404 Error
- Can’t use pagination with custom taxonomy
- previous_post_link in same taxonomy in custom post type
- Custom post type and custom taxonomy 404 on page 2
- How to list custom post types on a custom post type page?
- Taxonomy rewrite pagination 404
- 2 custom post type paging in 1 custom taxonomy
- custom taxonomy pagination 404 error
- Custom archive page for custom taxonomy and pagination issue
- Custom post type paging return home page
- Remove custom taxonamy slug with pagination
- pagination problem listing custom post types of taxonomy in wordpress
- WordPress custom post type taxonomy paging
- 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?
- CPT/Taxonomy/Postname permalink structure makes pagination break
- Pagination with a custom post type
- I want to create pagination for my custom post type archive that i am displaying with loop
- Pagination not working (page/2 retunring 404 page)
- 404 error next-page [2] PageNavi custom type taxonomy
- Pods pagination erases my sub menu
- Custom taxonomy in custom post type archive with pagination
- Pagination fault in custom post type archive page [duplicate]
- Paginate custom taxonomy category with wp_custom_pagination
- Pagination for a Custom Taxonomy
- Pagination URL order
- how to limit query_post to first page?
- See the process of creating a taxonomy and tell me where I made a mistake
- the_post_navigation in single page with multiple taxonomies
- Permalinks: custom post type -> custom taxonomy -> post
- How to Add Tags to Custom Post Type?
- Mixing custom post type and taxonomy rewrite structures?
- Can multiple custom post types share a custom taxonomy?
- How to Add Custom Fields to a Custom Post Type?
- Efficient Taxonomy Intersection
- Display current taxonomy term when inside custom post type
- limit selection of custom taxonomies to one?
- $wp_query->queried_object->ID throws warning: Undefined property
- Archive page…limiting posts per page
- Custom permalinks – post type – hierarchical taxonomy’s
- Taxonomy posts on Archive page
- Taxonomy list. Order by a specific custom post type count
- Rewrite CPT slug with two taxonomy slug instead of one
- Creating a simple pagination for custom post type templates
- Archive or taxonomy pages not working for custom post type
- Custom content type meta_box_cb does not run
- Custom Taxonomy breaking pages permalinks
- How to create new category for custom post type?
- Fetch taxonomies by custom post type id array
- Remove url rewrites for registered taxonomies
- Received nothing after executing AJAX post function
- How can I auto-assign a CPT post to category in a custom taxonomy when published?
- Mapping Subdomains in WordPress to give the appearance of a localised site, best approach?
- Group CPT posts by custom taxonomy
- Metabox not show in categories custom post type cmb2
- Categorize custom post type
- WP-API select custom taxonomy when creating a post
- Migrating a taxonomy’s tags to the native category
- Grouping of CPTs and taxonomies into menu groups in admin
- WP_query – Filter by tax_query and meta_query using multiple select
- Hide meta box for everything BUT a certain custom post type
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- filter by custom taxonomy using ajax
- Display custom tags for custom post listing page
- Page listing all categories for CPT
- Grab all Custom Posts by multiple taxonomies and terms
- Custom Post Types and Complex Content Hierarchy
- If custom taxonomy else conditional [closed]
- Confusion about how to use Custom Post Types, Custom Taxonomy or Category?
- Displaying Posts Using a Custom Query with a Custom Field and a term_id
- Pagenavi Plugin and Custom Post Type – Multipage results
- How to display custom taxonomy term specific post?
- Get taxonomy name used in a current post
- Custom Taxonomy Archive generates 404
- Support for author does not show author column in post table in dashboard
- Custom Pagination based on Custom Post Type
- Force WordPress to only match URL in category
- Can I create a taxonomy term that mirrors the name of a new custom post?
- Rewrite for custom type and custom taxonomy
- How to create TEMPLATES for TAXONOMIES? What I have to change in this code?
- Custom Post Status & Taxonomies
- Show Custom Post Type taxonomy term that matches custom field
- paging is not working properly on news archives page [duplicate]
- How to Display Custom Taxonomies in an Un-ordered HTML List
- how do I create a breadcrumb to work with multiple custom taxonomies
- Problems with pagination for a custom post type