WordPress.org

Ready to get started?Download WordPress

Forums

Conditional output based on page number? (2 posts)

  1. parakeet
    Member
    Posted 7 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 7 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