最热文章代码-wordpress主题
2009年08月5日
作者:graygift
点击量:337 次
0 评论
留言数最多的10篇文章 < ?php $result = $wpdb->get_results("SELECT comment_count,ID,post_title FROM $wpdb->posts ORDER BY comment_count DESC LIMIT 0 , 10"); foreach ($result as $post) { setup_postdata($post); $postid = $post->ID; $title = $post->post_title; $commentcount = $post->comment_count; i...阅读全文