Can't hide content from home (3 posts)

  1. Carlo
    Posted 5 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. Michael
    Forum Moderator
    Posted 5 years ago #

    the conditional tag to use would be is_paged()

    before your lines:

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

    after your lines:

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

  3. Carlo
    Posted 5 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