Answered a question that’s virtually identical to this very recently on the WordPress.org forums.
Custom Post Type Archive Page – Pagination Isn’t Working
I’ve provided a work-around / fix in that thread that should also work for you to.
🙂
EDIT: You also need to add the paging parameter to your query..
Eg.
$args = array(
'post_type' => 'my_post_type',
'paged' => get_query_var('paged') ? get_query_var('paged') : 1,
'posts_per_page' => 15,
);
$loop = new WP_Query;
$loop->query( $args );
I reformatted the code to make it a little more readable, end result will be the same.
Related Posts:
- Pagination not working with custom loop
- Have different number of posts on first page
- wp_pagenavi() with custom wp_query()?
- Custom Post Type Pagination Not Working On Archive Page
- Custom Post Type Archive Page: Set Posts Per Page, Paginate
- Archive page…limiting posts per page
- Pagination go to first page if i’m on last post
- Posts in Multiple Columns and Rows with one single loop
- Newer/Older posts links display same posts on every page
- Fix custom query pagination without changing site-wide posts-per-page settings
- posts_nav_link on single post template
- Pagination with custom post types results in 404 issues
- How i can add ‘N’ page of ‘N’ pages under posts loop?
- How can i change the output of posts_nav_link();
- How to display all posts from standard posts to custom post types in a loop with pagination?
- How To Show All Custom Post Types In A Category Instead Of Pagination?
- Custom Theme With Custom Loops
- Custom Post Types strange pagination problem
- pagination not working for category.php (custom post types in categories)
- Pagination Error : Duplicate argument being outputted
- Custom Post Type, Pagination and 404s?
- 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 not working in custom post type. Help
- Pagination Not Working When Used With WP_Query() `offset` Property
- Why is my loop not populating the page with my custom taxonomy terms from my custom post type?
- 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
- How to Fix Custom WordPress Loop with Pagination on Single Post View?
- Pagination on custom post types
- Pagination in custom post type page template
- Custom post type archive pagination with HTML5Blank theme?
- Pagination not working with custom loop
- Pagination not working with custom loop
- Pagination not working with custom loop
- Pagination not working with custom loop
- next_posts_link returns same content of 1st page
- Pagination not working with custom loop
- Fourth page of custom post type archive page does not exist
- Unable to display paging navigation with a custom post type loop
- WPNavi pagination links not working on custom pages
- How do you get the count of posts in an archive page?
- Adding custom post type to loop
- specify meta_key / meta_value condition for prev_post_link and next_post_link
- Using new WP_Query in shortcode in a custom field causes the main post content to not display
- Taxonomy posts on Archive page
- How to show related posts by category or custom post type?
- Pagination gives 404 error
- Creating a simple pagination for custom post type templates
- adding .current* tags to custom post types and taxonomies
- Posts navigation in custom post type single.php not working
- Remove duplicated values from a loop
- Add/Remove current_page_parent class
- Twenty Fifteen: Adjacent posts by menu_order [duplicate]
- How to connect two custom post types with nested loops
- Repeating posts when paginating random posts
- Normal pages as children of my Custom Post Type
- Custom Post Type Loop throws 500 error when used in widget
- Pagination on with query_posts in custom post type template
- Custom Tag Description unable to display just below and outside of the Loop
- Custom Post Type within the Loop on Homepage (Page Template)
- Number of posts in the archive
- the_post() is printing titles in page footer
- Pull in taxonomy field of custom post type in new query
- How to add a lightbox to class mix?
- Get post content from another section in custom single page
- Posts are not rendering perfectly [closed]
- Query all post types but limit to parents
- next page with custom post
- Looping through custom taxonomy and display custom post types (Custom Post Type UI)
- Custom post class, generate unique id from 1 to x depending on amount of posts?
- Create a custom taxonomy template that loops through child categories in term order?
- Displaying Posts Using a Custom Query with a Custom Field and a term_id
- Can’t Get Parent and Child Categories of Custom Taxonomy to Display
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- creating a foreign key like relationship with custom post types
- Pagenavi Plugin and Custom Post Type – Multipage results
- How to Enable Ascending or Descending In WordPress Default Built-in Loop
- Fetch data from two custom post types and create multidimensional array for output to html table
- Loop all post on single.php
- Combine multiple separate lists into one
- Custom post type, next and previous links by page title
- custom post type single page
- Custom post types not displaying per category
- Custom Pagination based on Custom Post Type
- How to show Y number of custom posts after every X normal posts?
- How to loop custom post type posts by author?
- previous_posts_link returns null when querying custom post type
- Custom Post Type Pagination for Bones Theme [duplicate]
- Pagination with Custom Post Type
- paging is not working properly on news archives page [duplicate]
- Inserting random posts
- Custom Loop and Standard Blog Loop Issue
- Loop to pull content from parent element in custom post type [duplicate]
- Problems with pagination for a custom post type
- How to create custom page templates with default page layout framework?
- Custom post type pagination conflict result in 404