Loading...

dwqdqwd

Published: September 29, 2025 by ahmad

At A Glance

next_posts_link() and previous_posts_link() both check if ( ! is_single() ) to display pagination. Now, is_single() is true in your case, because you are in a single post of 'author' type, so those functions can't work as you expect.

The function is setup to use get_query_var() to check for page/paged but I cannot seem to make the URL /page/2 work. Instead I get a 301 redirect back to the continent. I can use /2 which is picked up by get_query_var('page') but not sure if this is the correct solution (and I need to be able to use this with the_posts_pagination.

You may think to use 'page' instead of 'paged', but that will not work either, because once the 'page' variable is intended to be used for multi-page singular post (page separation using <!--nextpage-->) and once the post is not multi-page, WordPress will redirect the request to the URL without '/page/XX/'.
This is what happens when you name your query variable $wp_query.

this is a company name ltd.citation goes here!