My question is not new but it just does not work with all found solutions in my case.
I am trying to display recent posts on single post using custom query_posts loop. The permalinks structure must be this one: /%category%/%postname%/
WordPress version: 3.2.1
The page has 2 loops:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!--first content part-->
<?php endwhile; endif;?>
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts('posts_per_page=3&paged='.$paged);
if (have_posts()) : while (have_posts()) : the_post(); ?>
<!--recent posts-->
<?php endwhile; endif; wp_reset_query();?>
So calling next page like http://www.domain.com/category/post-one/page/2/
simply strips off /page/2/ and does nothing else.
I am desperate already for looking a working solution and not sure if its possible to fix.
Thank you.
From the WP Codex for WP_Query:
Changing the query var from ‘paged’ to ‘page’ will result in the following code: