Support » Themes and Templates » how to display current comment page?

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    (@esmi)

    Forum Moderator

    I’ve not tried it but you might want to see if the is_paged() conditional will work with comments.

    I need the numeric value of the current page in wordpress!

    if you have a code like this

    <?php if (have_posts()) : ?>
         <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("category_name=catname&showposts=3&paged=$paged"); ?>

    you can use
    <?php if ( $paged == 1 ) { somecode } ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to display current comment page?’ is closed to new replies.