You will need to take the value of /page/n and pass it into your custom loop:
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
$the_query = new WP_Query( 'posts_per_page=3&paged=' . $paged );
You can read more here: https://codex.wordpress.org/Pagination
Related Posts:
- 404 on category.php pagination
- Clean install – Changing permalinks in twentyeleven give 404
- WordPress /page/2 gives 404 when custom permalinks is set to %category%%postname%
- After server migration only the homepage works
- Changing permalinks gives me 404 errors on nginx
- Get the current page URL (including pagination)
- Get current URL (permalink) without /page/{pagenum}/
- Including category-base in a post permalink results in 404
- WordPress thinks my custom route is a 404
- How to prevent the default home rewrite to a static page
- Homepage loads but all permalinks are 404 when using nginx & PHP-FPM
- Pagination causes error 404 when used with front-page.php
- removed index.php now all pages 404
- Archive pagination causing 404 with permalinks structure
- Permalinks Structure and 404 Question
- Add ‘articles’ prefix before blog posts url without affecting pagination
- Attachment page 404 not found when image is attached to post
- Changes to permalink structure results in 404 error for all pages other than home
- permalink changed, now getting 404 for every pages
- Permalinks broken regularly
- 404 Page Not Found for Only One Post
- Problems redirecting to “pretty” permalinks (wordpress in Subdirectory)
- Permalink change made author archive vanished
- Custom permalink for search and pagination
- wp_logout_url redirects to incorrect page because of pagination
- WordPress 404 in development area
- Permalinks by page/post name returning 404
- How to Get Page 2 / Paginated RSS Feed with Custom Permalink Structure?
- Custom Permalink
- Pagination Issue – /page/2 404
- Editing Pages Give 404 Error After WordPress Upgrade in Admin Panel
- page nested 3 levels deep shows 404
- Changing the post date without causing 404 error
- Nginx Rewrite Rule:: index.html added to every permalink
- How to make /search/ without parameters not return a 404?
- Why does the ‘Month and Name’ Permalink Format not Work on my new WordPress Site (running on IIS7)?
- Help with Elementor Pagination CPT archive 404 problem
- Why is page/2/ not working?
- WordPress post-name permalink redirects to site.com
- Why wordpress kicks me back to the dashboard of xampp? [closed]
- Edit page slug after save, cause 404 by linked pages
- Unable to get /%postname%/ permalinks working, 404 on all links
- Correct permalinks and 404-error
- What would cause a theme to add extra characters to blog post links?
- Getting 404 when Access post which name start with Digit
- Permalinks stopped working – NO update, mod_rewrite enabled, .htaccess not touched
- Host frontpage via example.com and everything else via example.com/blog
- WordPress can generate numeric permalinks, which then 404
- Custom permalink structure gives 404
- Permalinks on post is working, on pages 404 error
- Change permalink structure for pagination only
- How do I change the permalink structure without getting 404s?
- 404 permalink errors on Pages only
- WordPress pages and posts are redirecting to server IP address instead of domain URL [closed]
- Why does enabling Permalinks make pages not found?
- Changing permalink settings causes 404
- Main blog page works but title says Page not found
- problem with pagination in custom permalinks
- WordPress permalink change causes all incoming links to give 404 errors
- Pagination breaks on child-categories, works fine on parent-category
- using wp_redirect to redirect to a permalink
- old permalinks not found
- The requested URL was not found on this server [closed]
- Browsing to permalink prefix results in 404
- Problem with special character WordPress
- Xampp 7.3.3 fresh install of WordPress 404 pages unless permalink is set to plain
- MySQL-inserted custom taxonomy term lead to 404, flush rewrites doesn’t help
- Custom structure permalink preventing 404
- Extending page urls without getting a 404
- My WP homepage works, but the other pages don’t when accessing from out side of my network
- I have a 404 error on all my pages! What do I do?
- 404 on pretty permalinks when serving via HTTPS
- 404 error on published page with specific permalink
- Permalink issue with WordPress Site at domain root and another WordPress Site in a Subfolder
- 404 page not found – Yet open admin page it works
- Custom permalink gives 404 error only in some pages
- Woocommerce product page 404 not found
- Remove Permalink of certain posts
- How to get a clean pagination link without variable
- Added .html to Woocommerce permalink but pagination don’t work!
- Problem with permalinks
- Pagination links for taxonomy archive page 404 error on every page except first
- HTTPS permalinks resulting in 404
- LetsEncrypt WordPress on the Raspberry Pi – Nice url’s give 404 with https, http works
- Change the permalinks structure
- When using number in url it is redircting to same page but when using character it redirects to 404
- Page_link change
- Add Custom Pagination Permalink
- Folder Name and Category Name WordPress
- Although rewrite engine is on, I get 404 not found on every page
- homepage olderposts link showing page not found
- 404 error on second page load for child-pages
- How to change pagination base from slash to query form?
- Category pagination first link works, remaining don’t
- WordPress 3.1 problem, getting 404
- Getting the terms from “Beautiful Taxonomy Filters” Results ot Integrate into “Ajax Load More”
- Post archive pages bringing me to a 404 page
- WordPress keep redirecting me to random URLs
- Plugins, themes and other dashboard links including permalinks giving 404 error
- WordPress Permalinks 404 Not Found