how to display current comment page? (4 posts)

  1. Marc Toensing
    Posted 7 years ago #

    Is there a function to display the current comment page? I could grep it from $_SERVER and then the request uri.

  2. esmi
    Forum Moderator
    Posted 7 years ago #

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

  3. Marc Toensing
    Posted 7 years ago #

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

  4. nazzilla
    Posted 6 years ago #

    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 } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic