I assume you have a custom post type: publication
in functions.php place that code:
function mk_parse_query($query) {
if ($query->query_vars['post_type'] == 'publication')) {
set_query_var( 'posts_per_page', 5 );
}
}
if( !is_admin() ) {
add_filter('parse_query','mk_parse_query');
}
Similar code works for me, but in my case I was struggling with 404 on custom taxonomies paged urls.
Hope this helps.
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
- Pagination with custom post types results in 404 issues
- How i can add ‘N’ page of ‘N’ pages under posts loop?
- How to display all posts from standard posts to custom post types in a loop with pagination?
- Paging doesn’t work?
- 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
- 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
- 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
- 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
- Display all posts in a custom post type, grouped by a custom taxonomy
- next_post_link() not working for single custom post type post
- Pagination with custom post type not working
- Retrieving 3 latest post from each of 5 different custom post types
- Custom Post Type Rewrite Rule for Author & Paging?
- Custom post type archive with pagination?
- How to solve suspected memory issue in custom WordPress loop?
- Randomly placed sticky custom posts complemented by blog posts
- Custom post type archive page pagination
- How to get all posts except for one post from a certain custom post type?
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- Return the latest post from a custom Taxonomy and Post Type
- Full Custom Post Type List Organised by two Taxonomies
- Get custom post type’s fields in a while loop as variables
- Tag page only display 10 posts
- get_post_type is always post
- Trouble with pagination
- Control content before and after custom post type loop
- How to do admin CRUD & Pagination
- Custom Post Type not showing in main loop
- My custom taxonomy is only displaying 1 of 3 terms
- Custom Post type content within a slider
- posts within custom post type all share the same content in the front-end
- displaying content of custom post type
- Display the current post in browser as the first post in a loop (for a slideshow)
- Custom Sidebar in Editor (not Widget) for Custom Post Type in Genesis
- Loop Post Types with Name and Links
- Display all images from specific CPT
- Custom loop to query posts with no featured image and/or no post editor content
- Custom post pagination trouble
- Custom Post type showing up in loop, regular posts are not showing up
- Loop for custom-post-type comparing taxonomy terms for “related” posts?
- Single parent post lists child posts with pagination
- Using custom post type as front home page pagination not working
- Last post in loop – custom post types
- Problem with custom loop navigation inside the blog page
- custom taxonomy pagination 404 error
- Excluded Custom Taxonomy Term Posts Displaying in loop
- Some posts not displaying by taxonomy term
- Make pagination work as a carousel (custom query)
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- subtracting the current post form then whole loop, which is generating all CPT titles
- I want to create pagination for my custom post type archive that i am displaying with loop
- How to return custom posts in loop?
- custom post type loop
- Loop with Custom Post Type and Taxonomies
- Pagination custom post types outside loop
- Paginating custom query on category template
- WordPress Custom Post Type and sort by Tags
- Pagination always adding “Next” link when results come from Custom Post Type WP_query
- If i have custom post type with 5 custom fields do i have to create a new loop to reference each one?
- Looping taxonomy in taxonomy?
- Archive Page Pagination not working
- Classic Custom Post Types and WP-PageNavi
- List of filtered Events is breaking paging?
- Custom Post Type Loop breaking php
- Styling first post using Advanced Custom Fields
- Pagination not working on homepage
- What Is My Fault With This WP_QUERY ? [ Pagination Problem ]
- Filter page ID outside the loop and order
- the_post_navigation in single page with multiple taxonomies
- How can I show posts with the same tag?