Conditional tag problem in sidebar
-
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.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Conditional tag problem in sidebar’ is closed to new replies.