Issues with pagination | WordPress.org

[ad_1]

OK, I figured out of If I set my permalink structure to “plain” it works fine. However I do want to keep my post-name as the link structure. Is there any way to fix this?

OK, I managed to fix it by adding the following in functions:

/************** Pagination fix *************************************/
add_filter('redirect_canonical', function($redirect_url) { return false; });

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer