'; ?> <?php if (isset($_REQUEST["p"]) || isset($_REQUEST["name"])) { echo "Comments on: "; the_title_rss(); } else { bloginfo_rss("name"); echo " Comments"; } ?> http://wordpress.org/?v= get_results($request); $post_ids = array(); foreach ($posts as $post) { $row = $wpdb->get_row("SELECT ID, post_title FROM $tableposts WHERE $tableposts.ID = $post->ID"); $sql = "SELECT comment_date, comment_author, comment_content, comment_ID FROM $tablecomments "; $sql .= "WHERE comment_approved = '1' AND comment_post_ID = $row->ID ORDER BY comment_date DESC LIMIT 4"; $comments = $wpdb->get_results($sql); $title = stripslashes($row->post_title); $num_comments = $wpdb->get_var("SELECT COUNT(*) FROM $tablecomments WHERE comment_approved = '1' AND comment_post_ID = $row->ID"); // this line is WordPress' motor, do not delete it. if ($comments) { foreach ($comments as $comment) { ?> by <?php comment_author_rss() ?> at <?php echo date('h:i A, m/d', strtotime($comment->comment_date)) ?> in <?php echo $title; ?>(<?php echo $num_comments--; ?>) comment_post_ID; ?>@ ]]>