ThemeShaper Forums » Thematic

if (is_single()) {}

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


  1. if (is_single()) {

    stuff here


    is single = single posts + pages?

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

    Posted 12 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



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

    Posted 12 years ago #

RSS feed for this topic


You must log in to post.