WordPress.org

Ready to get started?Download WordPress

Forums

How to tell if single post is being shown? (3 posts)

  1. evergreen
    Member
    Posted 8 years ago #

    Hi all,

    I am looking through docs, but not sure what I should be looking for. I want to have a section on my sidebar only show if a single post is being shown (ie single.php).

    Right now it shows on all pages since sidebar.php is used globally.

    Any help appreciated.

    Thanks!

  2. moshu
    Member
    Posted 8 years ago #

    Take a look at the Conditional_Tags in the Codex. At the bottom of the page there are working examples - one is about single posts.

  3. evergreen
    Member
    Posted 8 years ago #

    woo hoo thanks!

    I have started really sinking my teeth into WP. Loving it.

    Time to go print and read. :D

    Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Topic