Simply replace the wp_pagenavi(); by
if(function_exists('wp_pagenavi'))
{
wp_pagenavi(array( 'query' => $loop) );
wp_reset_postdata();
}
Related Posts:
- WP_Query Pagination on single-custom.php
- Have different number of posts on first page
- Custom pagination for custom post types (by names)
- next_post_link() not working for single custom post type post
- Pagination with custom post type not working
- Custom post type archive 404’s with paginate_links
- Changing the URL Structure of a Paginated Custom Post
- Number of pages – multiple (custom) post types
- WordPress search: pretty URLs (permalinks), custom post types and pagination
- Multiple Paginations on one Page
- Custom permalink with pagination
- Custom Post Type Rewrite Rule for Author & Paging?
- Newer/Older posts links display same posts on every page
- Custom wp_query pagination – next_posts_link() or wp_pagenavi() always empty
- Custom post type archive with pagination?
- Pagination on a custom page template
- Pagination problems with multiple custom post type archive pages
- Pagination in plugin with custom post type
- Fix custom query pagination without changing site-wide posts-per-page settings
- Display “Post 2 of 4” on single post page?
- posts_nav_link on single post template
- Pagination problem in custom post type used as front page
- Custom Taxonomy archive returns 404
- Custom Post Types, Page Templates and Pagination. Why do I get a 404 Error?
- Pagination with custom post types results in 404 issues
- Pagination Issue: Custom Post Type In Index
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Custom post type archive page pagination
- Custom post type archive not regarding ‘posts_per_page’ => -1
- Archive template for custom post type only lists first 10
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- How i can add ‘N’ page of ‘N’ pages under posts loop?
- How can i change the output of posts_nav_link();
- Pagination on a custom post type loop
- How to alter WP-JSON main query or best practise for custom endpoints
- Pagination is not working in custom post type
- Page vs Custom Post Types Differences/Issues
- How to display all posts from standard posts to custom post types in a loop with pagination?
- Previous/Next Link by Meta Value in CPT
- Custom post type (with parent-child relationship) singular page with pagination
- Custom template Page 2 not working
- How do you paginate a query grouped by month?
- custom post type pagination error 404
- Custom Post Type Pagination Paginates Only in URL Structure
- Querying Custom Post Type, ordering by Custom Taxonomy Pagination Not Working
- can these 3 queries be re-written as 1 query?
- Custom post type pagination 404
- Pagination broken by naming conflict between CPT and Page
- Pagination Error : Duplicate argument being outputted
- Pagination doesn’t function properly for archive of a custom post type set as the front page
- Custom post type and custom taxonomy 404 on page 2
- Using Pagination for Custom Post Type and keeps returning 404
- Pagination for search results of custom post type [duplicate]
- Pagination of custom post type leads to 404 error
- Difference between page and paged
- All blog posts are not showing up
- Custom Post Type, Pagination and 404s?
- 2 custom post type paging in 1 custom taxonomy
- Sticky posts limit query and pagination for a custom post type
- Pagination in custom post type archive.php not working
- Pagination links for custom post type shows correct number of links, but links result in Page not found
- Pagination for custom post type giving 404 error (but only for news page)
- how to skip a CPT element from the pager by custom field
- Pagination not working in custom post type. Help
- Custom Post Type Pagination getting 404 error
- Numeric pagination custom post type
- Problems in paginate_links with custom query loop and MB-Relationships
- WordPress custom post type taxonomy paging
- WordPress doesn’t respect Page slug in custom post type url pagination. Keeps getting removed
- User Archive page for Custom Post Type – Pagination Issue
- Custom Post Type canonical link / pagination redirecting to root
- Custom post pagination not working
- CPT/Taxonomy/Postname permalink structure makes pagination break
- Use WP pagination functions on a custom page template
- Pagination in wp-admin for CPT
- Pagination not working (page/2 retunring 404 page)
- 404 error next-page [2] PageNavi custom type taxonomy
- Add pagination to custom page
- Paginate Custom Post, Old and New buttons not displaying
- Pods pagination erases my sub menu
- Custom Post Type shows pagination (w/404) or posts_per_page query, but not both
- Get Non-Paginated Index of Post in Paginated Query
- Pagination in custom post type page template
- query and paginate multiple post types
- Custom post type archive pagination with HTML5Blank theme?
- Custom Post Type Pagination Problem in Admin Section
- Paginate custom taxonomy category with wp_custom_pagination
- Custom post type navigation on static page
- Custom pagination [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 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
- Pagination broke after updateto WordPress 3.4 [duplicate]
- Pagination for custom post type on multisite not working
- Unable to display paging navigation with a custom post type loop
- Custom post type pagination conflict result in 404
- Custom post type pagination not working in index.php file