I think your issue is that wp_pagenavi() is doing pagination based off of the global $wp_query instance instead instance you created. You should either switch to using query_posts() to replace the global query instead, or use WordPress’ built in paginate_links to output the paging.
Related Posts:
- Having trouble generating pagination links on custom query
- How to create an attachments archive with working pagination?
- query_posts and pagination, still stuck after much research
- how could I get the pagination as I want to when query posts using get_posts function
- Filter query_posts by tag slug on “Tag Archive” page (when tag is 2 or more words)
- pagination in author.php template returns 404 error
- How do i paginate query_posts with numeric pagination?
- Pagination on custom query
- How do I make archives.php for one category only?
- Custom posts per page does not work with pagination
- WordPress pagination showing same posts on each page
- How can i display the posts per week in a particular month?
- WordPress pagination with get_posts?
- Using ajax with paging and a custom sub-query
- Custom loops, sticky posts, and pagination nightmare
- Querying posts only if the current page is not paged?
- query_posts pagination will always show identical content
- Can’t get pagination to work for sticky posts only
- How do I use pagination in WordPress?
- Pagination linking to first page
- Query Posts Incorrectly Displaying Tags Archives
- Modify main loop query for paged and meta key
- Post Filter clearing on pagination $_post
- get_next_posts_link() stops displaying at page 4
- Query Posts Creates 404 Error
- WordPress loop problem: Multiple loops, index.php and is_paged causing duplicate posts on next page
- Achieving pagination with `query_posts`
- Create “archives by year and week” by category template
- How to Get All Posts with any post status?
- posts_per_page no limit
- How can i get count from query post
- query_post by title?
- Why query_posts() isn’t marked as deprecated?
- Alternative to query_posts for main loop? [duplicate]
- how to query posts by category and tag?
- Using WP_Query to Query Multiple Categories with Limited Posts Per Category?
- Order by meta value or date?
- How do I query by post format in WordPress 3.1
- Display posts of the last 7 days
- Custom post type pagination 404 fix?
- Is there a way to exclude the content from the post variable to save on RAM usage?
- Filtering posts by post meta data
- How to query_posts using meta_query to orderby meta_key AND have a secondary sort by date?
- Query posts by custom taxonomy ID
- Display/query post formats
- How To Modify The Loop in archives.php To Have 11 Posts Per Page and CSS Styling
- How to query post by user role?
- How to return results of a get_posts() in explicitly defined order
- Custom post type archive 404’s with paginate_links
- Help to condense/optimize some working code
- Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)
- Pagination throws 404 error on custom taxonomy archive pages
- get_query_var(‘paged’) always returns empty
- How to set posts per page using WP_Query()
- query_posts exclude a meta key
- How do I create a random post that will last for a day
- Ensuring sticky posts are retrieved first (without using two queries)?
- Determine if more posts are available than was asked for in `query_posts()`?
- Custom Post Type Archive Page: Set Posts Per Page, Paginate
- Modify main WordPress loop with a parse_query filter
- Get the number of posts from the current page results
- query_posts() in function makes global $wp_query out of sync?
- Limiting query_posts to 1, regardless of sticky post?
- How to make “sticky” pages (and query by them)
- Query posts: how to exclude results if post is in multiple categories
- Multiple Paginations on one Page
- Archive page…limiting posts per page
- query_posts ->using meta_compare / where meta value is smaller or greater or equals
- Problem with ‘post__not_in’
- How to order posts by descending comment count on taxonomy page?
- Filter archive.php by custom meta
- Sort posts alphabetically by custom field value, insert divider between different letters
- Is it better practice to use query_posts, WP_Query, or get_posts to create various custom loops within a Page?
- WP 5.8 “Query Loop” block: where to place custom query?
- Sort X categories by last update and show image
- Custom Post Type “Event”: chronological list of recurring events
- using post__in allow duplicate post id
- WordPress Custom Query
- Best way to load page content in Fancybox popup?
- How should I intercept the main query and inject custom join / order by / group by criteria
- Custom Post Type Archives by Date (stored as meta value) WP3.1
- advice on creating a ‘related posts’ query like the one used on stackexchange
- order post my meta value m/d/y format with year as included value
- Order by meta value, pro first, then free
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- _wp_page_template to dynamically use template
- Sorting archive pages with “pretty” URLs?
- Using dynamic conditions in ‘posts_where’ filter
- Custom post type archive with pagination?
- Help altering a query to exclude all but standard post format
- List users with the most total posts view
- Schedule Sticky Posts
- Use union/intersection query_posts variables in uri request parameter form?
- query_posts doesn’t order by title
- How to limit search to first letter of title?
- Query posts by taxonomy term name
- Sorting problem with ‘query_posts’ funcion in wordpress. Sort by custom field not working
- Total Count of Posts NOT in Selected Categories?
- Custom query with query_posts doesn’t show post without certain meta_key
- paginate function in archive for custom-post-type