It turns out that in my functions.php file, I had the following function:
function limit_posts_per_archive_page() {
if ( is_tax('project_categories') )
$limit = 9999;
else
$limit = get_option('posts_per_page');
set_query_var('posts_per_archive_page', $limit);
}
add_filter('pre_get_posts', 'limit_posts_per_archive_page');
This was an old function modifying the pagination on the front-end, and it turns out that this was causing the error.
Removing the function fixed this.
Related Posts:
- I want to create pagination for my custom post type archive that i am displaying with loop
- How to add pagination to a post loop in a custom BuddyPress tab
- Custom post meta box as a sub form
- How to get a custom post type archive paged when using a custom field for post sorting?
- How to override post-new.php with custom template
- Pagination in wp-admin for CPT
- Pagination not working (page/2 retunring 404 page)
- next_posts_link() always generates second page link on custom post type
- Pagination URL in Custom Content Type
- Post navigation doesn’t show (in custom template, custom post type, custom query)
- 404 error next-page [2] PageNavi custom type taxonomy
- Group based routing and administration
- Limit Number of Custom Post Type Dashboard
- Add pagination to custom page
- 2 custom posts types, in their own columns, one pagination for both
- Add filter button to custom post type in admin area
- Pagination functions won’t work
- pagination for a custom query
- Custom Pagination based on Custom Post Type
- Paginate Custom Post, Old and New buttons not displaying
- yet another: custom post type with pagination not working in WordPress
- Pods pagination erases my sub menu
- “Trash”, “Draft” and count not showing for custom post type in admin panel
- Custom Post Type shows pagination (w/404) or posts_per_page query, but not both
- Edit is changing my custom’s post type parent id
- 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?
- Get Non-Paginated Index of Post in Paginated Query
- why custom post archive gives always no more than 10 posts despite of paging settings?
- Custom post type with Filter and Page Nav
- Pagination on custom post types
- Pagination in custom post type page template
- Pagination fault in custom post type archive page [duplicate]
- How to display data with pagaination on backend?
- Pagination custom post types outside loop
- Custom Post Type Pagination Not Working or Single Posts Displaying?
- 404 error Custom search results page for custom post types with friendly URL
- Paginating custom query on category template
- query and paginate multiple post types
- Custom post type archive pagination with HTML5Blank theme?
- Paginate custom taxonomy category with wp_custom_pagination
- Custom post type navigation on static page
- Pagination in custom loop for custom post type throwing 404 error
- Filtering in admin broken for custom post type in 3.8.1?
- Custom pagination [duplicate]
- previous_posts_link returns null when querying custom post type
- Custom Post Type Pagination for Bones Theme [duplicate]
- Custom post type blog pagination conflict
- Custom post type pagination, single page issue
- Pagination for a Custom Taxonomy
- Custom post type won’t take my custom fields
- Pagination always adding “Next” link when results come from Custom Post Type WP_query
- Pagination with Custom Post Type
- paging is not working properly on news archives page [duplicate]
- Rewrite Rule & Regex – Extract ‘cat-name’ and ‘page-number’ from http://domain.com/custom-post-type/category/cat-name/page/page-number
- Using pagination with specific custom post type [duplicate]
- Pagination URL order
- Pagination not working with custom loop
- WordPress Load more posts by ajax not working
- how to limit query_post to first page?
- Change the text on the Publish button
- Paged within a custom content type template [duplicate]
- Show a custom field instead of username in the backend author area
- Pagination for event query
- Pagination not working with custom loop
- Can’t preview custom post – Redirected to home page
- Pagination not working with custom loop
- Pagination not working with custom loop
- How to make an admin create/edit post page to look like taxonomy page?
- Archive Page Pagination not working
- Classic Custom Post Types and WP-PageNavi
- List of filtered Events is breaking paging?
- Pagination not working with custom loop
- Pagination not working on homepage
- send user to first page of results when reposting to page?
- How do I paginate a custom post type listing on a custom template page?
- Show posts of parent in edit.php
- Fourth page of custom post type archive page does not exist
- Pagination broke after updateto WordPress 3.4 [duplicate]
- admin search of pages returns custom post types
- Problems with pagination for a custom post type
- WordPress custom post type post and category links 404
- WordPress pagination URL
- Pagination not working for archive
- Archive page – problem with pagination
- See the process of creating a taxonomy and tell me where I made a mistake
- WordPress getting problem with pagination [duplicate]
- Pagination not working in custom post type
- Pagination not working
- What Is My Fault With This WP_QUERY ? [ Pagination Problem ]
- Pagination for custom post type on multisite not working
- Unable to display paging navigation with a custom post type loop
- Pagination on category pages using wp_pagenavi causes 404 errors
- Pagination not working only on Archive-Name.php using new WP_Query
- CPT Archive Pagination – Page not found
- WPNavi pagination links not working on custom pages
- 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