I had a similar problem recently and determined the cause to be that when WordPress queries for posts in a category, it looks for posts with post_type equal to ‘post’ before it reaches the point where you query for post_type ‘any’ or some custom post type. This doesn’t cause a problem on page 1 because even if there are no posts it calls your template. However on page 2 and so forth, it doesn’t find any posts of post_type ‘post’ so it loads the 404 template before your template even gets a chance to modify the post_type parameter.
Is this a bug? That’s a good question. I would say so because you should expect that if you register the ‘category’ taxonomy on other post_types, all post_types would show up in that archive, not just strictly posts.
Hopefully that helps.
Related Posts:
- What Is The Use Of map_meta_cap Filter?
- WordPress Paginate $wpdb->get_results
- Making Custom Fields Standard in the Admin UI
- is_home() and is_single() Not Working as Expected with Custom Post Types?
- pagination in woocommerce order history page
- Adding Pagination on a Custom Author Page
- Setting posts per page in query_posts
- CPT: if more than X images are in post, use pagination
- Paginate Author’s Post List on Custom Author Page (ANOTHER THEORY)
- Pagination Issues using WP_Paginate Plugin
- How do I move/order posts with a tag to the end?
- How to handle paged param in post and custom-post-type?
- Hide text if not homepage
- Number of posts in the archive
- Is there a way to by-pass the pagination function on one custom template?
- website with pretty permalinks except pagination
- How to custom post navigation
- Pagination with custom field
- Custom query pagination with php parameter as arg problem
- Custom Pagination based on Custom Post Type
- WordPress custom search – pagination
- Pagination is not working on custom query
- Custom Slider Per Page created
- Gallery Pagination by Row
- Pagination on with query_posts in custom post type template
- Custom attachments styling in post view
- How to check if a custom user profile field is empty
- Load more posts with multiple queries
- Custom title, Bones theme
- Properly customizing login/register form
- Permalink structure by Post Meta value
- Custom static page get_header error
- How to integrate video slide using custom post types?
- Query post for ‘selected category’ in archive.php
- Pagination of Custom Post Types not Changing Posts
- Different development environments (Mac & Windows)
- Add a InfoBox in the media upload window
- Side by side blogging?
- A question on creating filters for custom posts using taxonomy
- Conditional Query of Custom Post Type and custom taxonomy
- will post_id ever change? Can I safely use post_id for custom queries?
- Using Fullscreenr with a wordpress blog – weird bug
- List custom taxonomy specific to one custom post type
- WordPress Locale Switching on Accept-Language Header
- How to Call a static page in WordPress
- Define new user capability for custom post types?
- Determining What Content Gets Displayed
- Truncating varying lengths of information
- WordPress slugs and 404 handling takes preference over folders in site root?
- How to allow visitors to enter custom post type?
- Add google org chart to wordpress page
- Follow me for WordPress blogs (multi-authors)
- How to get pages id in array in get_pages?
- Paging doesn’t work?
- Access post meta in future_to_publish function
- I’m using add_meta_box() but want to include TinyMCE editor *and* Media Uploads for each box
- Javascript Solution Remove Specific Tag but leave the rest in a specific DIV
- syntax highlighting for theme-editor.php?
- Is it possible to create relational metabox values in a custom post?
- Custom Post Type Query for Sidebar Doesn’t Work on Front Page
- adding homework to a school’s website
- Fastest way to get the comment and ping total count for a post
- Author Tracking Code!
- How-To add Custom field in WordPress wp-ecommerce Categories?
- Meta query for custom post type ignored in main query
- adding multiple custom columns to users.php
- How to create a completely private wordpress with multiple membership levels
- What changes we need to make to a theme so it can be installed as a MU Theme?
- Multiple RSS feeds scroller in one sidebar
- want to create a subcategory.php to manage subcats
- window resizing problem
- Suggestions for Implementing a Wedding Website in WordPress?
- Why do posts disappear from admin after upgrading from WP 2.7.1 to 3.0.1?
- Create membership number for existing/new users
- Updates for a private theme
- Understrap child theme JS not working in custom-javascript.js file
- How to encode author ID in the author permalink
- Oxygen builder custom Elements
- URLs and navigation in custom themes
- Hi, I wanted to make custom search with multiple fields
- Adding code to child’s theme css and php cannot override certain elements
- How to move wordpress to subdomain, keeping only .htaccess and/OR index.php in root domain?
- Help with Elementor Pagination CPT archive 404 problem
- 2 Templates 1 custom post type according url
- Add custom field to woocommerce variations [closed]
- changing meta value and meta key of price field
- how to get the categories for a single product in a hierarchical way
- Multi Site installation inside a sub domain inside a sub directory
- Automatically check parents (in a taxonomy) when child is selected
- Adding custom field in all widgets, but at the top of the form, in admin area
- I want to submit multiple users if checkbox is checked
- How to create left and right menu with logo center in a custom theme?
- CPT Loop with ACF and passing ID between Loops
- WordPress sort search results by custom order
- How to add custom page attributes in WordPress?
- Showcase elementor templates
- Add clickable arrows to parent menu items with children elements e.g. with
- large chunks of text went missing
- How to change popular term checklist title when edit post?
- How Do I Remove The Right Hand Block On The Main Header?