WordPress.org

Ready to get started?Download WordPress

Forums

conditional tag for "first page" of paged posts? (3 posts)

  1. donzacharias
    Member
    Posted 6 years ago #

    Hi,
    I'm looking for a conditional tag to wrap around content that you only want to appear on "/page/1"... for example, to wrap it around an author's bio so that it only appears on "/authorname" or "/authorname/page/1" but not on subsequent pages. Can anybody help?

    Thanks!
    Don Zacharias
    sacrag.com

  2. Kafkaesqui

    Posted 6 years ago #

    Try:

    if( !is_paged() )

    If this does not work for cases of /page/ 1 and through query_posts() or some other means you are forcing pagination that is affecting things, then instead try:

    if( get_query_var('paged') < 2 )

  3. donzacharias
    Member
    Posted 6 years ago #

    a) totally works, thanks!!

Topic Closed

This topic has been closed to new replies.

About this Topic