题外话:wordpress的最新文章代码

加到合适的位置就可以了,本来应该放到主站的,可那里有点问题放不了代码~~比较郁闷~~~

< ?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"); ?>
< ?php
foreach ($recentposts as $post) {
if ($post->post_title == ”)
$post->post_title = sprintf(__(’Post #%s’), $post->ID);
echo “• 几个实用 WordPress 插件
  • AHK 快餐店系列教程搬家到小众!
  • 更新 Wordpress 2.3
  • PingInfo View - 批量 Ping 工具
  • 还没有留言,我也要留言

    还没有任何评论。

    留下评论

    (必需)

    (必需)


    支持 Ctrl+Enter