WordPress.org

Ready to get started?Download WordPress

Forums

Can't hide content from home (3 posts)

  1. Carlo
    Member
    Posted 3 years ago #

    I can't these line of code (http://pastebin.com/Crpx8mfT) from the blog pagination pages which appears when i click on "previous post" at the end of the homepage.

    I've tried conditional tags and body class without success.

    Can anyone plaese ecplain me why?

    Many thanks

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    the conditional tag to use would be is_paged()
    http://codex.wordpress.org/Function_Reference/is_paged

    before your lines:

    <?php if( !is_paged() ) : ?>

    after your lines:

    <?php endif; // closes conditional if( !is_paged() ) // ?>

  3. Carlo
    Member
    Posted 3 years ago #

    Great! I think i owe you a secon beer already :D

Topic Closed

This topic has been closed to new replies.

About this Topic