I believe if posts_per_page is set to -1 you’re showing all posts without pagination. Try setting it to 5 for example.
Related Posts:
- Display “Page 3 of 5” for a paginated post
- Single Page View for Paginated Posts
- Change class=”page-numbers” in pagination
- How to get post pagination like this
- Pagination Not Displaying on Custom Term Archive
- Non existing blog pages are not redirected to 404
- How do I sort multiples pages?
- WordPress pagination on custom script
- Limit number of pages in pagination
- wp_link_page – wrap current page element
- How to create pagination on archive.php template
- Jetpack Infinite scroll conflicting with theme’s pre_get_posts custom posts_per_page
- Having issues with wordpress pagination with multiple categories
- Paginate Child Pages Content on Parent Page
- Pagination is somewhat working on frontpage, doesn’t update when “prev” is clicked
- Display post links under month in paginated archive
- Blocking author paging for blog entries?
- Get total posts found, but while using limit for pagination? get_posts
- Show post count in wordpress instead of page count in wordpress pagination
- How to use “offset” to paginate get_users?
- remove paginations functions only on home
- WordPress Pagination with Get Value
- Show number of posts and number on current page (revisited)
- Rewriting get_next_posts_link() for custom loop
- Customize WordPress Core Template
- How to add a zero before numbers in WordPress Post Pagination?
- next_posts_link does not work when querying a specific category
- Tabbed content with Pagination
- Fetching more posts in WordPress via AJAX
- AJAX pagination offset returns same post on adjacent pages
- Next and Previous buttons for navigation
- Offset a post in the loop, with using PageNavi Plug-in
- Add additional first page, last page links to the_posts_pagination()
- Last page in pagination does not match max_num_pages – the overall post count is less according to pagination
- wp_title() returns ‘page not found’ on page 2
- Not refreshing content pagination on search result
- stop pretty pagination rewrite site.com/cat/2 => site.com/cat?page=2
- How checked checkboxes remember on all pages in wp_list_table pagination?
- Update to 4.4.1 breaks my pagination
- Frontend sorting
- Limiting number of visible links displayed with wp_link_pages
- Pagination not working in custom page, only working in post page
- Only show Previous & Next button in Pagination
- Pagination isn’t created when there is only one page of posts
- Different layout on second page
- Pagination Not Working When Modifying Loop Based on Post Category
- custom posts archive pagination links /page/2/ ends up in 404
- WP Query for all posts
- Pagination for Custom WP_Query not displaying page 2 results
- pagination error in taxonomy: Warning: Division by zero
- Translating a pager string
- Pagination, query more pages at once
- Pagination Links Not Showing Up on single.php posts on iOS Devices
- next_posts_link(); & previous_posts_link(); not working properly
- Ending Pagination loop in PHP
- Paginate the_content automatically? [duplicate]
- pagination links not displaying
- what code to add to search.php
- Page navi for template page
- WordPress paginate_links function: How do i ensure the page number is not less than 1 and not greater than last
- Pagination on page 2+ only
- How to replace pagination with Next/Previous for multi page posts?
- How to Add Pagination to Page?
- Disable and redirect pagination of Home
- GoBlog Free Pagination Issue
- Can’t Add Pagination
- How to hide empty pagination button when no previous page
- Pagination not working on homepage, On other pages it is working
- next and previous category name and link parent only wordpress in archive page
- WP_User_Query counter not updating with pagination
- Remove Number Of Pagination [closed]
- I would like help getting my pagination to work
- Display Both next previous and number in single page [duplicate]
- Pagination: Last Page Missing
- posts_per_page stop working after wordpress update from 4.2.1 to 4.6.1
- the_posts_navigation is not working
- Need help on wordpress pagination script
- Update Gallery Randomly in every hour with no duplicates?
- Custom page pagination based on Kriesi pagination
- Test for if you’re on 1st page of paginated post (with nextpage quicktag)
- Disable pagination on frontpage
- Pagination issue [duplicate]
- Pagination link problem when reaching the second page
- pagination broken because wordpress is adding index.html
- the paged param is allways 0
- Add next and previous post links on pages like category, tags or archive pages
- Stop loading more posts if none left AJAX
- Intercepting $_GET variable from custom pagination
- Need help getting this page nav working correctly [closed]
- Pagination is not working correctly there is this wierd looping
- another post a page problem
- How can I remove page slug for all pagings?
- Add pagination to the posts retrieved by below query [duplicate]
- pagination: Only one result is shown even if there are more than one?
- Please Help me with Archive 404 Pagination
- Pagination Not Working Properly
- margins in between pagination links [closed]
- Page navigation not working correctly on index but only on categories
- How to add wordpress pagination [closed]
- Separate page for pagination possible?