If Then
-
I basically modified my template to work off just the header, index, and footer file. the sidebar is setup inside the index page. what i want to do is, if i’m leaving / viewing a comment i want the sidebar to contain different information. i’m not sure how wordpress determines if to show the comments or not so i tried a lil php with no luck
<div id=”sidebar”>
<?php if ($comments) : ?>
comment content
<?php else : ?>
default content
<?php endif; ?>
</div>any ideas how to acomplish what i’m trying to do?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘If Then’ is closed to new replies.