Support » Themes and Templates » Conditional output based on page number?

  • On archive pages, I want to echo some text above the_loop – but only on the first page. Specifically, I’m using the category description.

    How can I do this please?

Viewing 1 replies (of 1 total)
  • Test on the value get_query_var('paged') returns:

    <?php if( 1 >= get_query_var('paged') ) : ?>
    Display only for first page of paginated queries
    <?php endif; ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Conditional output based on page number?’ is closed to new replies.