Support » Plugins » Hiding Other Content

  • I have a problem. I am setting up a site using WP and it has some static content below the WP dynamic content. All is well and good until I click on the comments link and the comments show up, but so does the static content below because comments are still part of index.php. Is there a way to hide this content when a user clicks on the comment link, but still show it on the normal index.php?

Viewing 2 replies - 1 through 2 (of 2 total)
  • you can wrap the content within a if statement.
    Say, if your content is “lorem ipsum”, you could do as follows :
    <?php if (!$single) { ?>
    lorem ipsum
    <?php } ?>

    this will prevent lorem ipsum from showing up on single entry pages (the one with the comments.

    Thank you! It worked great!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hiding Other Content’ is closed to new replies.