@Milo Thanks, the pre_get-posts seems to work perfectly. I was missing that before, thought my choices were between wp_query and query_posts.
The below should ONLY alter the query on the “rg_blog” custom post type archive, right?
function blog_filter($query) {
if ( !is_admin() && $query->is_main_query() ) {
if ($query->is_post_type_archive('rg_blog')) {
$query->set('post_type', 'post');
}
}
}
add_action('pre_get_posts','blog_filter');
Related Posts:
- Custom post type archive 404’s with paginate_links
- Number of pages – multiple (custom) post types
- Custom permalink with pagination
- Related posts by author pagination not working on the production site
- Secondary loop pagination on custom post type single post gets redirected to first page
- Pagination Doesn’t Work
- Numeric pagination custom post type
- Custom wp_query pagination – next_posts_link() or wp_pagenavi() always empty
- custom post type paging not working past page 3
- WP_Query pagination using only numbers instead of /page/1 on URL
- Pagination not working
- Pagination Issue: Custom Post Type In Index
- Custom query form submission pagination
- Paginated Taxonomy Term Archive including one post per term
- Unable to get paginate_links working with a custom query [duplicate]
- Pagination on category page with custom post types
- How to add pagination to wp_query [duplicate]
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- Pagination on a custom post type loop
- Previous/Next Link by Meta Value in CPT
- Pagination for Custom Taxonomy Page [duplicate]
- Custom taxonomy rewrite give pagination 404
- Woocommerce search pagination not working
- How do you paginate a query grouped by month?
- Pagination issue on category.php using custom post type query
- Pagination with custom query, custom search form, single and pages, ajax and no plugins
- can these 3 queries be re-written as 1 query?
- pagination not working for category.php (custom post types in categories)
- Custom WP_Query always respond with 200 status even when no entry
- Pagination doesn’t function properly for archive of a custom post type set as the front page
- Trouble with pagination
- Pagination 404 on Index with custom query
- Custom post type and custom taxonomy 404 on page 2
- Pagination for search results of custom post type [duplicate]
- Custom Post Type Archive Pagination
- All blog posts are not showing up
- Single parent post lists child posts with pagination
- Custom post type pagination error
- Previous / Next Links For Custom Post Type Sorted By Meta_Value
- custom taxonomy pagination 404 error
- Pagination in custom post type archive.php not working
- Pagination Not Working When Used With WP_Query() `offset` Property
- Numeric pagination custom post type
- Problems in paginate_links with custom query loop and MB-Relationships
- WordPress doesn’t respect Page slug in custom post type url pagination. Keeps getting removed
- Make pagination work as a carousel (custom query)
- Custom Post Type shows pagination (w/404) or posts_per_page query, but not both
- why custom post archive gives always no more than 10 posts despite of paging settings?
- query and paginate multiple post types
- Custom post type blog pagination conflict
- Custom post type pagination, single page issue
- Pagination always adding “Next” link when results come from Custom Post Type WP_query
- Paged within a custom content type template [duplicate]
- Pagination not working on homepage
- send user to first page of results when reposting to page?
- Fourth page of custom post type archive page does not exist
- Pagination broke after updateto WordPress 3.4 [duplicate]
- Archive page – problem with pagination
- Display all posts in a custom post type, grouped by a custom taxonomy
- Pagination with custom post type not working
- WP_Query() show posts that end later than today
- Sorting a query by custom field date
- Custom Post Type Rewrite Rule for Author & Paging?
- Newer/Older posts links display same posts on every page
- How to sort CPT by custom meta value (date), and return posts month by month
- Custom post type archive with pagination?
- Multiple Archive Pages for Custom Post Types AND Taxonomies
- Exclude current post when getting related post on custom post type and taxonomy
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- How to query different post types in specific order?
- Archive template for custom post type only lists first 10
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- How to make sure content doesn’t display if selection is empty
- Custom-Posttype & Custom Taxonomy WP_Query
- Stuck in Order by more then one
- Display featured image from one CPT within another CPT query
- Why is my category template ignoring post type?
- Retrieve custom post types by custom taxonomies with WP_Query
- Custom taxonomy wp_query woes.
- Different options per post type in WP_Query
- Custom Category Walker with Image, Fallback to Most Recent Post in Category Image
- Custom Post type loop with ACF not displaying properly
- Using Wp_Query, Json to add Highcharts series data
- Display the current post in browser as the first post in a loop (for a slideshow)
- Custom post pagination trouble
- Get_the_term_list inexplicably adds values in foreach
- wp_query can’t get max_num_pages in custom post type
- how to display posts content on the custom css popup by clicking on each title on the sidebar?
- how to display new private message to users?
- subtracting the current post form then whole loop, which is generating all CPT titles
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Imported Content Doesnt Show Up On Frontend
- Loop carousel slider in wordpress
- Manually build WP_Query
- How to load more custom type posts through AJAX & LOAD MORE POSTS button
- Pagination not working with custom loop
- Archive Page Pagination not working
- 404 on Pages for Custom Post Type & Query_Posts
- Classic Custom Post Types and WP-PageNavi
- List of filtered Events is breaking paging?