I took a look at the index.php code and I’ll explain what’s going on.
The theme author is using 2 custom new WP_Queries but is not doing anything with the main global $wp_query object. When you click to the second page you get the same posts because there is no main loop present.
Neither of the secondary loops contain pagination parameters. To fix this assign the query_var page to a variable and add it to the query args array.
$paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;
Add to array:
'paged' => $paged,
Next you need to tell WP pagenavi what query to paginate.
<?php if(function_exists('wp_pagenavi') ) { wp_pagenavi( array( 'query' => $blog ) ); } ?>
Related Posts:
- How to determine if I’m on the first page of pagination?
- How To create ajaxed wp-pagenavi?
- Pagination with $_POST and $_SESSION
- Wp-pagenavi giving page not found on clicking page 2
- WP Page Navi. 404 error when using posts per page parameter [duplicate]
- pagination links not displaying
- Page navi for template page
- pagenavi shows a lot of pages calculated from all posts in the site with query_posts
- Need help getting this page nav working correctly [closed]
- Pagination with wp_pagenavi not working on custom page
- WordPress /page/2 404 pagination problem – what to do?
- how to get pagination link url?
- add_rewrite_rule – working fine but broken for pagination
- wp_pagenavi() with custom wp_query()?
- How can I see all of a post’s comments on a single page as a reader, if pagination is enabled?
- Check if on last page of paginated post using wp_link_pages
- How to paginate a list of tags
- How do I sort multiples pages?
- WordPress pagination on custom script
- Broken pagination
- Paginate a list of users?
- Move pagination numbers above plug-ins
- How to use pre_get_posts?
- Custom page-links for paginated posts | wp_link_pages quicktag
- Possible to paginate on single.php?
- I want to change the media list with additionally query
- Content only on last page, if the page has pagination
- In pagination, change link for page 1 to homepage
- WordPress API returns empty page when page is less than X-WP-TotalPages
- Display only the current page number and another numbered page in pagination
- How can I paginate image attachments in a post?
- Pagination shows same contents all pages
- How do I insert CSS into a function?
- wp_list_categories pagination
- How to test pagination? [closed]
- Link to previous month’s posts
- How to get “last year from [spec year] that has posts”?
- Using Pagination with Timber Routes
- Pagination url canonical problem
- WordPress loading index page instead of archive.php
- How can I paginate a list of related posts?
- tag.php pagination and query_posts()
- Authors list Pagination?
- Add icons in paginate_links()
- How can I use var php with javascript to build custom page? [closed]
- WordPress single page template, custom post type, pagination orderby title – alphabetical order
- Single Page Views and Pagination View Depending on URL Query
- Category lists page foreach Paging
- Issue on single.php pagination WordPress
- Using Ajax in the prev_posts_link and next_posts_link
- Adding range to wp_link_pages()
- How to set up pagination [closed]
- WordPress triggers 404 on page 2 for custom search query
- Search page pagination does not work
- Pagination 404s on custom query
- Wp pagination for custom database table
- Customise wp_List_pages to output a UL LI
- Custom wp_link_pages for paginated posts | Next page randomly
- Pagination in home page for a custom loop loads same content
- Pagination not working with custom post type
- Displaying the author of next and previous posts in pagination?
- How to ignore pagebreaks for RSS feed?
- Pagination For Table Rows on a page?
- The paging is very slow under a large number of articles
- Universal CPT archive template and half working pagination
- Custom admin page pagination permissions error
- Problem with older entries in homepage
- remove $_GET-parameter from WP_List_Table::tablenav
- Pagination for previous page/next page (with more than one post/page)
- Pagination for custom post types
- Pagination in author, category, archive and tags pages does not work
- WordPress pagination with wp_query_columns
- How can I paginate results from get_children
- Setting up Pagination with twentytwelve_content_nav
- Add pagination to WP_Query
- Why can i add /page/674874 (or any number) to a URL and it still pulls up that page?
- How to add numbers pagination to this blog page?
- Show number of pagination pages even when total under two
- Why next_posts(); function does not work inside header.php?
- Override the WordPress default pagination markup
- Pagination with Metaboxes or Custom Fields
- The pagination is working on Local, not on LIVE. why?
- 2 Columns with Independent Pagination
- Prevent WordPress to remove query vars from url
- Google Indexed sub pages in wordpress pagination in post
- Paginate Links function: Page 1 doesn’t work
- Pagination doesn’t work on static front page
- Changing post per page causing 404 for pagination. Need a redirect htaccess rule
- How to display most viewed posts without any plugins
- Search engine not working
- Split a long form into multiple pages
- Infinite scroll repeats posts in custom loop in single.php
- One post on frontpage and an archive page
- pagination for blog landing page
- Pagination is not working correctly there is this wierd looping
- Pagination Error – Same Posts Displaying Over Again
- margins in between pagination links [closed]
- Page navigation not working correctly on index but only on categories
- How to split long posts in multiple pages in twentysixteen
- Duplicating pagination on second page