WordPress.org

Support

Support » Themes and Templates » How do I display the current page number in my theme?

How do I display the current page number in my theme?

Viewing 1 replies (of 1 total)
  • nazzilla

    @nazzilla

    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 ) {  ?>

Viewing 1 replies (of 1 total)
  • The topic ‘How do I display the current page number in my theme?’ is closed to new replies.
Skip to toolbar