How to paginate comments using 'per_page' and 'page' arguments, some how like 'paged' argument for WP_QUERY works.

I want to list comments passing arguments somehow this way:

 $curr = max( 1, get_query_var('paged') );

               'per_page'    => 2,
               'page'        => $curr

So, depending on url it lists different comments that are breaken by 'per_page'. This was i will be able to set 'per_page' argument different for different posts. And not be dependent on option in admin panel under Settings->Discussion that works for all pages and behaves strange with 'per_page' argument set altogther.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.