} elseif ($this->is_single) { $where .= ' AND (post_status != "static")'; # begin hack } elseif ($this->is_search) { $where .= ' AND (post_status = "publish" OR post_status = "static")'; # end hack } else { $where .= ' AND (post_status = "publish"';