header("Content-type: text/html; charset=utf-8"); include_once("./dbclass.php"); $db = new DB(); $sql = "SELECT * FROM wp_posts WHERE post_type = 'post' AND post_status NOT IN ( 'trash', 'auto-draft' ) ORDER BY post_date DESC"; $newsdata = $db->Select($sql); $str = '