bu satırı, şu satırın üstüne koy:
$sql = mysql_query("SELECT * FROM wp_posts WHERE (post_status='publish' AND post_type='post') ORDER BY RAND() LIMIT 1");
$sql = mysql_query("SELECT * FROM wp_posts WHERE (post_status='publish' AND post_type='post') ORDER BY RAND() LIMIT 1");