Posted'; if($display_author=="yes"){ echo ' by '.$row["display_name"];} echo ' on '.date( "F d, Y", strtotime($row["post_date"]) ).'
'; echo ''.$content.'
'; if($display_comments=="yes"){ comments($row["ID"]); } echo '***pagebreak***
'; } mysql_free_result($result); function comments($id){ $query = "select comment_author, comment_date, comment_content from wp_comments where comment_post_id = '$id' and comment_approved = '1'"; $result = mysql_query($query); $num_rows = mysql_num_rows($result); if ($num_rows > 0){ echo '