• I’d like to suppress search engine indexing for all pages EXCEPT the individual post pages.
    Is there a variable or something set at the top of index.php that would tell me is this is an individual post page as opposed to the front page or a category index so I can set a META tag?
    Deane

Viewing 2 replies - 1 through 2 (of 2 total)
  • In WordPress 1.3, you can use:

    if ( is_single() ) {
    // allow indexing
    } else {
    // deny indexing
    }

    In WordPress 1.2, you should be able to use:

    if ( $single ) {
    // allow indexing
    } else {
    // deny indexing
    }

    Thread Starter Deane

    (@deane)

    Perfect, thank you.
    Deane

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Telling Post Pages from Index Pages?’ is closed to new replies.