Are you writing a custom query? If so, are you using the paged function in your query?
It would look something like this:
<?php
query_posts( array(
'posts_per_page' => 5,
'cat' => '10',
'paged' => ( get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1 ),
) );
while( $new_query->have_posts() ) : $new_query->the_post();
?>
// loop stuff here
<?php endwhile; ?>
<?php next_posts_link( '« Older Entries', $new_query->max_num_pages ) ?>
<?php previous_posts_link( 'Newer Entries »' ) ?>
Related Posts:
- How to show a single post on the front page but have normal paging?
- How to add CSS Class to previous_post_link or get previous/next post link URL
- Aggregate comments, with pagination
- Implementing a general Table of Content across single paginated post pages
- Strange paginate_links behavior. First page link is always whatever page I’m on, all other links are correct
- List posts based on first letter of posts
- Pagination for sub-pages
- How to implement pagination eg. newer – 3 – 4 – 5 – 6 – 7 – older
- Custom loop pagination issue ( pagination not showing up )
- Category pagination shows same posts
- How to display next and prev pagination links with WP_User_Query?
- Custom taxonomy list and sortby letter pagination problem
- Custom Page Template for “Older Posts” Pages
- WordPress Pagination not displaying posts after certain page
- How to change title tags on paginated posts?
- add spans and characters into paginate_links
- Show next / previous text (button) all the time
- Pagination difficulty using custom query in genesis-based custom theme
- Placing Ads after every 10th Post with Infinite Scroll
- WordPress Pagination not working, any ideas?
- Blocking author paging for blog entries?
- Show post count in wordpress instead of page count in wordpress pagination
- Show number of posts and number on current page (revisited)
- Rewriting get_next_posts_link() for custom loop
- Customize WordPress Core Template
- Altering next_posts_link(); and previous_posts_link();
- Tabbed content with Pagination
- Prev and Next link for splitting single post into multiple pages [duplicate]
- Pagination: /tags/tag_name/?paged=2 gives a 404 error
- How to disable pagination (next/previous links) on post type archive?
- Wpdb result with pagination
- Pagination indication “/page/2/” are removed from url and auto redirect without /page/2/ : 301 redirection
- Pagination with no ‘page’ slug
- Modify WP_List_Table pagination “item(s)” text?
- How to stop WordPress returning 404 on paginated pages after using add_rewrite_rule()?
- Invalid previous pagination links generated from paginate_links()
- Pagination not working on custom page
- 404 when using pagination in a category
- Pagination customization
- Pagination w/Static Front Page
- Pagination not working in custom page, only working in post page
- How do I fix this ‘Undefined variable:’ debug message?
- Only show Previous & Next button in Pagination
- How do I paginate a list of categories?
- Post Pagination Modifications (wp_link_pages)
- /tag/tag_name/page/2 gives a 404 error
- Wp-pagenavi giving page not found on clicking page 2
- How can I change pagination numbers with next and back button?
- Pagination isn’t created when there is only one page of posts
- Different layout on second page
- Post Navigation Not Working In Blog Template – Redirecting to same page with correct URI
- Pagination on and tag.php not working
- custom posts archive pagination links /page/2/ ends up in 404
- How to get rest api pagination headers via fetch
- Can I use paginate_links() to add a pagination list, yet prevent it from inserting links?
- Page links are not working after moving domain [closed]
- How to remove /page/2/ from home page?
- wordpress custom search page pagination returns 404
- next_posts_link(); & previous_posts_link(); not working properly
- Problem when I try to insert pagination
- Change the format in the paginage_links
- Pagination on WP_User_Query not updating current page
- Paginate the_content automatically? [duplicate]
- Blog pagination WITHOUT using max_num_pages
- paginate posts on admin page
- Why my pagination gets 404?
- How do i make the_posts_pagination look like my template?
- How to add post page pagination to template part?
- Custom pagination in wp
- 404 page not found on pagination in home page while navigating to next page
- Linking images in WordPress Paginated Post
- next and previous category name and link parent only wordpress in archive page
- Set Pagination count according to post count
- Pagination in Archives
- I would like help getting my pagination to work
- load certain content only on first page of pagination
- Pagination diplays always 2 pages
- Combining content breaks category pagination
- Custom Query & Rewritten URL Pagination 404
- Test for if you’re on 1st page of paginated post (with nextpage quicktag)
- Search URL gives 404
- How to paginate query using get_categories()
- Need help with get_posts pagination
- WordPress 404 pagination (/page/2) error?
- Custom pagination generates title 404
- Excluding certain post status’s from pagination
- WordPress creating 404s under blog tags
- Stop loading more posts if none left AJAX
- Intercepting $_GET variable from custom pagination
- Pagination work! But title still says “Page Not Found”
- WordPress pagination URL posts not load
- Next / Previous Posts not working
- Use cookies in pagination
- Making a Killer wp_link_pages
- Always show Next and Previous button in wp_link_pages ?
- Show pagination in WP_Query
- How to automatically load more data when users reaches at the bottom of the page of the wordpress site?
- I want the “next” and “previous” buttons to appear in my custom navigation function
- How to make infinite scroll by dividing the content?
- Change Pagination Default to “/2/” Query String “?page=2”