Yes! Hoorah! You did it.
Here is the fixed code for posterity:
To load a custom CSS stylesheet on a single page:
function my_stylesheet($content) {
global $wp_query;
if (is_page()) {
$pageID = $wp_query->post->ID;
if ($pageID == '332') {
$content = "\t";
$content .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"";
$content .= get_bloginfo('stylesheet_directory') . "/alternate.css";
$content .= "\" />";
$content .= "\n\n";
}
}
return $content;
}
add_filter ('thematic_create_stylesheet', 'my_stylesheet')
To load a custom CSS stylesheet on multiple pages:
function my_stylesheet($content) {
global $wp_query;
if (is_page()) {
$pageID = $wp_query->post->ID;
$pagelist = array('332','333','334');
if (in_array($pageID, $pagelist)) {
$content = "\t";
$content .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"";
$content .= get_bloginfo('stylesheet_directory') . "/alternate.css";
$content .= "\" />";
$content .= "\n\n";
}
}
return $content;
}
add_filter ('thematic_create_stylesheet', 'my_stylesheet');