WordPress.org

Ready to get started?Download WordPress

Forums

Display post in front page in one way and another in second page and greater (2 posts)

  1. wpmhweb
    Member
    Posted 2 years ago #

    Hello,
    I would like to know how can I display the posts in certain way in the front page and when is second page and greater be able to display them in another way.

    i have tried using the

    <?php if (is_front_page() && !is_paged() ){ ?>
    // content from home page
    <?php } ?>

    and the rest of the content at the bottom of this but I made a mess and is not working the way I want it.
    I don't know how to tell wordpress how to show page 1 in one way and page 2 ans so one in a different way. please help!!!!

    Thanks,

  2. wpmhweb
    Member
    Posted 2 years ago #

    GOT it!
    This is what i needed!

    <?php if ( $paged < 2 ) { ?>
    <p>Text for first page of Category archive.</p>
    <?php } else { ?>
    <p>Text for subsequent pages of Category.
    Can be left out.</p>
    <?php } ?>

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic