You can try this SO question Pagination when using wp_query?
Notice that their example uses the $query
variable for the WP_Query
instance, while your code uses $the_query
.
Also notice that they use paged property in the array that is being passed into WP_Query
Related Posts:
- Custom Post Type Settings page, choose page to display archive
- Adding Sticky functionality to Custom Post Type Archives
- paginate function in archive for custom-post-type
- Pagination problems with multiple custom post type archive pages
- Custom taxonomy template not working with simple loop. Multiple CPT using the same taxonomy
- WordPress custom post type archive with description
- Custom post type archive page pagination
- Archive template for custom post type only lists first 10
- Custom post type is showing custom home page, not archive page
- Custom post type archive page blank
- My archive-posttype.php template is not loading
- Custom Post Archive is not working
- Pagination doesn’t function properly for archive of a custom post type set as the front page
- How to integrate single and archive templates for custom post type in any WordPress theme
- Custom Post Type Archive template not being called
- Is possible register two archive pages for single custom post type?
- Archive page of CPT’s custom Taxonomy
- Pagination links for custom post type shows correct number of links, but links result in Page not found
- Finding the CPT archive template source
- pagination problem listing custom post types of taxonomy in wordpress
- ACF Pro Accessing fields on a Custom Post Type
- Permalink for custom post type pages not working
- Custom post pagination not working
- get first limited words from a custom post in the archive page
- Show index and not the archive for “Dog Custom Post” with default slug
- Custom post type archive page not showing on archive-posttype.php
- Custom post type with two templates
- Custom Post Type shows pagination (w/404) or posts_per_page query, but not both
- How do I make my archive page look like popular reviewing sites (e.g., Polygon and Gamespot) [closed]
- Display custom post type archive on page.php template
- Making a archive gallery page for a custom post type which already has an archive page
- Custom taxonomy in custom post type archive with pagination
- Get Non-Paginated Index of Post in Paginated Query
- why custom post archive gives always no more than 10 posts despite of paging settings?
- Pagination fault in custom post type archive page [duplicate]
- paging is not working properly on news archives page [duplicate]
- Archive Page Pagination not working
- Pagination not working for archive
- Pagination not working on custom post type archive
- Archive pagination – second page shows exactly the same posts
- WordPress CPT archive page display sticky post first and then display the rest of the posts in same Query
- Pagination not working with custom loop
- Get custom post type slug for an archive page
- Adding custom post type archives to a WordPress menu
- wp_pagenavi() with custom wp_query()?
- Custom Post Type Archives by Date with Custom Permalink
- Custom Post Type archive as front page
- Pagination with custom loop
- Group list of posts by taxonomy and allow for pagination
- Adding custom post types to archive.php
- WP_Query pagination using only numbers instead of /page/1 on URL
- How to make an archive page displaying posts in a date range
- Categories and Tags not working!
- Display Next/Prev when looping Custom post-types archive?
- pagination redirecting from page number url before page requested
- How To Create A Custom Taxonomy 404 Page
- CPT: if more than X images are in post, use pagination
- Change archive page template using pre_get_post
- CPT Archive with core Category
- Custom post types and tag archive pages/permalink structure issue
- WordPress post_where & posts_join not working only for custom post type
- Is it possible to to use custom post type types on a page with the same slug somehow?
- WordPress custom post query with pagination
- can these 3 queries be re-written as 1 query?
- Excluding a Custom Post Type with a specific tag using pre_get_posts
- sort CPT on Custom Taxonomy Archive page
- Custom post type and custom taxonomy 404 on page 2
- Difference between page and paged
- add_action ‘init’ from inside a class for custom post types
- Custom post type archive – error in nav-menu-template.php
- Get single posts archive information
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- Invalid content when I try to import custom post type from the old template wordpress
- Pagination for custom post type giving 404 error (but only for news page)
- how to skip a CPT element from the pager by custom field
- Pagination not working in custom post type. Help
- Does this archive template part look like its making too many calls to the db?
- Custom Post type page content (archive page)
- Posts per Page on custom Taxonomy Template
- Group custom post type posts by month
- Creating an archive page or simple template to list all values of a custom field of specific post type listing
- WordPress custom post type taxonomy paging
- WordPress doesn’t respect Page slug in custom post type url pagination. Keeps getting removed
- Custom Post Type canonical link / pagination redirecting to root
- Use WP pagination functions on a custom page template
- get_permalink() of page the enclosing page not posts
- How to manage a custom post type archive as a page?
- Paginate Custom Post, Old and New buttons not displaying
- How do I get the posts from single page custom post type from a sidebar to display in a page?
- Multiple archives for cpt, taxonomies, terms
- Pagination in custom post type page template
- Custom post types archive
- query and paginate multiple post types
- Custom Post Type Pagination Problem in Admin Section
- Rewrite rules causing hole
- Archive custom template from search
- how to pass args for archive.php query?
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Pagination for custom post type on multisite not working
- the_post_navigation in single page with multiple taxonomies