Index: template-functions-post.php
===================================================================
--- template-functions-post.php	(revision 2983)
+++ template-functions-post.php	(working copy)
@@ -310,6 +310,21 @@
 		}
 	}
 
+	if (!empty($r['only'])) {
+                $onlypages = preg_split('/[\s,]+/',$r['only']);
+                if (count($onlypages)) {
+                        foreach ($onlypages as $onlypage) {
+                                if (!empty($exclusions)) {
+                                        $exclusions .= ' OR ';
+                                } else {
+                                        $exclusions .= ' AND ';
+                                }
+                                echo $onlypages[$onlypage];
+                                $exclusions .= ' ID = ' . intval($onlypage) . ' ';
+                        }
+                }
+        }
+
 	$pages = $wpdb->get_results("SELECT * " .
 		"FROM $wpdb->posts " .
 		"WHERE post_status = 'static' " .

