I have this snippet

<ul>
    <?php
    global $id;
    wp_list_pages( array(
        'title_li'    => '',
        'depth'        => 1,
        'child_of'    => $id,
        'sort_column' => 'post_title',
        'show_date'   => 'modified',
        'date_format' => $date_format
    ) );
    ?>
</ul>

But how would I add this…

<?php comments_number( 'no responses', 'one response', '% responses' ); ?>

So the number of comments are displayed after each page title?

Read more here: How would I add the comment count to this sub-pages of current page snippet


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: