wp_pagenavi( array( 'query' => $loop ) );
should work with the code above. Don’t hijack the main query if you can avoid it.
Related Posts:
- Pagination not working with custom loop
- Have different number of posts on first page
- 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
- Fix custom query pagination without changing site-wide posts-per-page settings
- 404 error PageNavi custom type taxonomy | wordpress
- 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
- Pagenavi Plugin and Custom Post Type – Multipage results
- 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
- Pagination URL in Custom Content Type
- 404 error next-page [2] PageNavi custom type taxonomy
- 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
- How do you get the count of posts in an archive page?
- Shortcode Displaying Custom Post Types
- Secondary loop pagination on custom post type single post gets redirected to first page
- Grossly inefficient wordpress loops!
- Pagination throws 404
- paginate function in archive for custom-post-type
- exclude custom post type by meta key in wp_query
- Get the title of custom post type in another loop
- WordPress rewrite my URL when i use pagination
- Unable to get post content from custom post type loop
- Pass the_post() as a parameter
- get_template_part and template file names
- Hard code the nextpage tag into my theme?
- Show one item per category of a custom post type
- Multiple Loops On Custom Post Type Template?
- Pagination of Custom Post Types not Changing Posts
- Pagination issue on category.php using custom post type query
- Custom Post Type within the Loop on Homepage (Page Template)
- Number of posts in the archive
- the_post() is printing titles in page footer
- Dynamically insert code to custom post type loop
- Pull in taxonomy field of custom post type in new query
- How to add a lightbox to class mix?
- Get post content from another section in custom single page
- Posts are not rendering perfectly [closed]
- Query all post types but limit to parents
- Looping through custom taxonomy and display custom post types (Custom Post Type UI)
- Custom post class, generate unique id from 1 to x depending on amount of posts?
- Create a custom taxonomy template that loops through child categories in term order?
- Get post-meta value of all custom-posts – lowest to highest year-count?
- Displaying Posts Using a Custom Query with a Custom Field and a term_id
- Custom Post Type Query W/Category Dropdown
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- creating a foreign key like relationship with custom post types
- How to Enable Ascending or Descending In WordPress Default Built-in Loop
- Fetch data from two custom post types and create multidimensional array for output to html table
- Loop all post on single.php
- Pin posts to top of custom loop
- Add Pagination in custom Blog page template
- Combine multiple separate lists into one
- Custom post type, next and previous links by page title
- custom post type single page
- Post navigation doesn’t show (in custom template, custom post type, custom query)
- Custom post types not displaying per category
- How to show Y number of custom posts after every X normal posts?
- 404 error Custom search results page for custom post types with friendly URL
- How to loop custom post type posts by author?
- previous_posts_link returns null when querying custom post type
- Custom Post Type Pagination for Bones Theme [duplicate]
- Pagination with Custom Post Type
- paging is not working properly on news archives page [duplicate]
- Paged within a custom content type template [duplicate]
- Inserting random posts
- Custom Loop and Standard Blog Loop Issue
- loop through custom post-type with two meta_keys
- Loop to pull content from parent element in custom post type [duplicate]
- Problems with pagination for a custom post type
- How to create custom page templates with default page layout framework?