get_results("SELECT ID, post_title, post_content, comment_count FROM `$wpdb->posts` WHERE `post_status` = 'publish' ORDER BY `post_date` DESC LIMIT $limit", ARRAY_A); if (empty($results)) { return; } foreach ($results as $result) { $postID = $result['ID']; $excerpt = seans_excerpt($result['post_content'], $excerptLength); $postTitle = $result['post_title']; $permalink = get_permalink($postID); $comments = $result['comment_count']; ?>

Comments []

', ']]>', $text); $text = strip_tags($text); $excerpt_length = $length; $words = explode(' ', $text, $excerpt_length + 1); if (count($words) > $excerpt_length) { array_pop($words); array_push($words, '[...]'); $text = implode(' ', $words); } return $text; } ?>