加到合适的位置就可以了,本来应该放到主站的,可那里有点问题放不了代码~~比较郁闷~~~
< ?php
$today = current_time('mysql', 1);
if ( $recentposts = $wpdb->get_results(“SELECT ID, post_title FROM $wpdb->posts WHERE post_status = ‘publish’ AND post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 10")):
?>
< ?php _e("Recent Posts"); ?>