[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; });
