[wp-trac] [WordPress Trac] #35402: per_page parameter no longer works in wp_list_comments
WordPress Trac
noreply at wordpress.org
Wed Jan 13 13:45:42 UTC 2016
#35402: per_page parameter no longer works in wp_list_comments
--------------------------+-----------------------
Reporter: Ninos Ego | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4.2
Component: Comments | Version: 4.4.1
Severity: major | Resolution:
Keywords: | Focuses: template
--------------------------+-----------------------
Comment (by Ninos Ego):
@boonebgorges sure, I'm using the function in the post content template
file, inside the post loop, so inside of:
{{{#!php
<?php while ( have_posts() ) : the_post(); ?>
}}}
The loop so is called everywhere a loop-post content is included
(archives, author, category, search, ...). My used code is following:
{{{#!php
<?php
wp_list_comments( array(
'page' => $cpaged,
'per_page' => 2
) );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35402#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list