Here’s an analogy to help you out:
You have a book, there are 500 words per page and you open the book at a page and read. You then hand then close the book and hand it to me, asking me to read the next page. Which page?
You’ve told your query what you want, and how many per page you want, but nowhere have you specified which page you want it to grab, so it will always grab page 1.
http://codex.wordpress.org/Class_Reference/WP_Query#Pagination_Parameters
Do this using the paged
query var.
Also consider using the pre_get_posts
filter instead of creating a whole new query, so that you can avoid the whole WP_Query and pagination mess completely.
Related Posts:
- Custom post type archive page pagination
- paging is not working properly on news archives page [duplicate]
- Pagination not working for archive
- Custom Post Type Archives by Year & Month?
- Get custom post type slug for an archive page
- Custom post type pagination 404 fix?
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Pagination throws 404 error on custom taxonomy archive pages
- Proper way of making custom post type landing page or archive page
- Custom Post Type Archives by Date with Custom Permalink
- Custom Post Type Archive Page: Set Posts Per Page, Paginate
- Change title in head on Archive page
- Custom Post Type Archives with 0 Posts Redirects as 404
- Multiple Paginations on one Page
- Archive page…limiting posts per page
- Page is defaulting to archive page and not designated template
- Better to use a post type archive, page template, or shortcode for generating a highly configurable CPT archive?
- Custom Post Type Archives by Date (stored as meta value) WP3.1
- Custom post type archive with pagination?
- Custom post type archive sorted and grouped by date in post meta field
- How to create archive page for taxonomy terms within custom post type
- WordPress custom post type archive with description
- Custom-post-type-archive: posts sorted/filtered by year?
- How to list custom post types?
- Editable content on a Custom Archive page
- Second Custom Post Type Archive
- is_main_query() not working for WP REST API
- CPT Archive with core Category
- How can i change the output of posts_nav_link();
- Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far
- get the custom post type title/name
- URL of a custom post type’s post format archive?
- Create template for taxonomy results limited by Custom Post Type
- Custom post type archive page blank
- How to display custom post in archive section of the wordpress page?
- What’s the name of the custom post type yearly archive template?
- How can I use archive-{post_type}.php theme template?
- Return the name of the post type
- Use the custom post type archive for taxonomies?
- Custom Post Type Archive Pagination
- Archive page for custom post type and custom taxonomy
- How to have multiple archive pages?
- Create a Custom Path to Archive
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- WordPress sitemap with Custom Post Types
- Is possible register two archive pages for single custom post type?
- pagination problem listing custom post types of taxonomy in wordpress
- Custom Post type page content (archive page)
- 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
- Do not show child pages within a file page
- Tell wordpress to show a single page instead of an archive page
- Permalink for custom post type pages not working
- Custom Post Type archive page listing a 404 or single post
- Custom post pagination not working
- Custom post type pagination problem – page 1 and 2 show same content
- Want to display my custom date archive to date.php but dont know how
- Custom Post Type shows pagination (w/404) or posts_per_page query, but not both
- Custom taxonomy in custom post type archive with pagination
- why custom post archive gives always no more than 10 posts despite of paging settings?
- Rewriting archive page slug to be different than custom post type slug
- Pagination fault in custom post type archive page [duplicate]
- Site loads very slow for archive custom post type page
- Stop Custom post type from being searched via URL
- Custom post type category page not working
- How can I set up the URL for a category archive for a custom post type?
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- Archive Page Pagination not working
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Remove plugin’s custom post type archive page and single pages [closed]
- Pagination not working only on Archive-Name.php using new WP_Query
- 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
- Custom Post Type Settings page, choose page to display archive
- wp_pagenavi() with custom wp_query()?
- posts_nav_link on single post template
- wrong template for page of archive
- Pagination problem in custom post type used as front page
- Custom Taxonomy archive returns 404
- archive-{$post_type}.php not loading. instead the default archive.php loads
- How to show multiple post types on taxonomy archive?
- get_categories for custom post type and filter by custom taxonomy (brand) and list child categories of a defined category
- Pagination links not showing on custom post type admin list
- Display custom post type taxonomies as an archive page
- Custom post type not displaying all entries
- Displaying Page as Custom Post type landing Page
- Custom post type / taxonomy rewrite archive page 2 gives 404
- Paginate_links in custom post type template
- Limit the Title Length on Custom Post Type Archive Page to a Set Number of Characters
- Get the link of the first post of a custom taxonomy in a custom taxonomy list
- Pagination for search results of custom post type [duplicate]
- Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php
- CPT archive page – show one post from each taxonomy term
- Event Archive by Month
- Pagination in wp-admin for CPT
- Add pagination to custom page
- Custom post type archive pagination with HTML5Blank theme?
- Custom pagination [duplicate]
- Show custom category archive as front page and remove taxonomy slug from urls