WordPress.org

Ready to get started?Download WordPress

Forums

Conditional tag for page 1,2,3,4..... (4 posts)

  1. hello12332123
    Member
    Posted 5 years ago #

    hello

    what is the Conditional tag for page 1,2,3,4..... I use

    is_page() but seems it does not apply to 1,2,3,4..... it only apply to normal pages. Please help

    thanks!!

  2. microkid
    Member
    Posted 5 years ago #

  3. hello12332123
    Member
    Posted 5 years ago #

    is_paged() seems doesn't work, any idea why??

  4. iridiax
    Member
    Posted 5 years ago #

    If is_paged doesn't do what you want, you could try an if/else with the $paged variable:

    <?php if ( $paged < 2 ) { ?>
    Text for the first page.
    
    <?php } else { ?>
    Text for subsequent pages.
    
    <?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags