WordPress.org

Ready to get started?Download WordPress

Forums

How do I display the current page number in my theme? (2 posts)

  1. Marc
    Member
    Posted 5 years ago #

    See topic. And I still want to know how to display the current comment page number: http://wordpress.org/support/topic/291749?replies=3

    No ideas?!

  2. nazzilla
    Member
    Posted 4 years ago #

    you can use something like

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

Topic Closed

This topic has been closed to new replies.

About this Topic