ThemeShaper Forums » Thematic

if (is_single()) {}

(3 posts)
  • Started 10 years ago by manlikemalcolm
  • Latest reply from manlikemalcolm
  • This topic is resolved

Tags:

  1. if (is_single()) {

    stuff here

    }

    is single = single posts + pages?

    is there a way to target only single posts?
    Thanks, Malcolm

    Posted 10 years ago #
  2. No .. looking into the description of conditional tags is_single() will be TRUE for a single post .. is_singular() will be TRUE for a single post, a single page or attachment.

    You'll find more details here: Conditional Tags

    Cheers,

    Chris

    Posted 10 years ago #
  3. Thanks! Man Thematic is really a great way to dive into wordpress + php. Thanks, Chris!

    Posted 10 years ago #

RSS feed for this topic

Reply

You must log in to post.