post->ID; $parent_ID = $wp_query->post->post_parent; if ($post_ID == 2 || $parent_ID == 2) { $inpage = "inpage_about"; } else if ($post_ID == 52 || $parent_ID == 52) { $inpage = "inpage_service"; } else if ($post_ID == 51 || $parent_ID == 51) { $inpage = "inpage_contacts"; } include (TEMPLATEPATH . '/tpl.global.php'); ?>