Firstly, you have 2 queries, the second is overriding the first:
<?php query_posts($query_string . '&pagename=&page_id='); ?>
<?php query_posts('posts_per_page=3'); ?>
Replace them with a single query:
<?php query_posts($query_string . '&pagename=&page_id=&posts_per_page=3'); ?>
Then modify your query as such:
'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 )
e.g.
<?php query_posts($query_string . '&pagename=&page_id=&posts_per_page=3&page=".( get_query_var("paged') ? get_query_var('paged') : 1 )); ?>
Related Posts:
- Pagination for sub-pages
- wp_link_page – wrap current page element
- How to display pagination links for WP_User_Query?
- post pagination names, not numbers
- How to fix pagination after rewriting url? ie. www.site.com/players/type/pro/page/3/
- Implementing a general Table of Content across single paginated post pages
- Custom WP_Comment_Query with pagination and orderby?
- Pagination: How do I always show ‘previous’?
- Varying the number of posts per page from the first one
- Using pagination with get_posts on page type
- Static front page with recent posts pagination
- Paginate tags page
- 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
- How to change title tags on paginated posts?
- paginate_links() outputs extra empty pages on custom loop
- When to check for max_num_pages using WordPress REST API?
- Adding pagination to a custom archive template
- How to make my pagination loop continuously?
- Limit the number of pages created by the paging
- add spans and characters into paginate_links
- wordpress Next/Previous post in same category not working
- Pagination is somewhat working on frontpage, doesn’t update when “prev” is clicked
- WordPress Pagination not working, any ideas?
- Altering next_posts_link(); and previous_posts_link();
- 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()
- How to add pagination to a single wordpress page with lot of text
- Pagination not working on custom page
- 404 when using pagination in a category
- Pagination customization
- Pagination w/Static Front Page
- How do I fix this ‘Undefined variable:’ debug message?
- 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?
- Post Navigation Not Working In Blog Template – Redirecting to same page with correct URI
- Pagination on and tag.php not working
- 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
- Problem when I try to insert pagination
- Pagination url for page template
- Change the format in the paginage_links
- Pagination on WP_User_Query not updating current page
- advanced paging in wordpress
- Blog pagination WITHOUT using max_num_pages
- paginate posts on admin page
- pagination links not displaying
- 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 show all posts of each category in pages
- How to Add Pagination to Page?
- Disable and redirect pagination of Home
- 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
- Custom pagination search in post type with meta key
- 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]
- Posts are not showing up on next page.
- 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)
- Pagination not working in custom post page
- How to display data with pagaination on backend?
- Pagination issue [duplicate]
- Pagination link problem when reaching the second page
- Add next and previous post links on pages like category, tags or archive pages
- Stop loading more posts if none left AJAX
- Wp Pagenavi how to display all results
- Intercepting $_GET variable from custom pagination
- How can I cycle posts with a #next and #previous script?
- Default pagination in Home/Front page
- Making a Killer wp_link_pages
- pagination leads to 404 page
- Show pagination in WP_Query
- How to automatically load more data when users reaches at the bottom of the page of the wordpress site?
- How to change `page` slug in pagination? on a specific pagination result (not globally)
- Two pagination in one page without being synchronous
- Change “/” (slash) before page number in pagination path to “-” (hyphen)
- Zeroise custom pagination to have leading 0