Conditional output based on page number? (2 posts)

  1. parakeet
    Posted 8 years ago #

    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?

  2. Kafkaesqui

    Posted 8 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic