Forums

Conditional tag problem in sidebar (2 posts)

  1. bobdeo
    Member
    Posted 3 years ago #

    Hi,

    So I put this code at the beginning of my sidebar :
    <?php if (!is_home()) { ?>
    <div id="recent_post" class="menu">
    <?php the_recent_posts(); ?>
    </div>
    <?php } ?>

    I don't want to display recent posts on the homepage. It works... But the recent posts appear at the bottom of the sidebar... strange...

    an idea ? thanks.

  2. bobdeo
    Member
    Posted 3 years ago #

    .... hum... when I erase

    <?php wp_meta(); ?>

    it seems ok... know why ?

Topic Closed

This topic has been closed to new replies.

About this Topic