也许我不明白这个问题,对不起。
但是你就不能检索除当前帖子之外的最后6篇帖子吗?类似于:
global $post;
$footer_posts = wp_get_recent_posts( array(\'post_status\' => \'publish\', \'posts_per_page\' => \'6\', \'exclude\' => $post->ID), 1 );
if ( ! empty($footer_posts) ) { foreach ( $footer_posts as $post ) {
setup_postdata($post);
echo \'<div style="float:left; margin-left:20px;">\';
echo \'<a href="\' . get_permalink() . \'">\';
the_post_thumbnail(\'thumb\');
echo \'<br /><h4 style="text-align:center;">\' . get_the_title() . \'</h4></a>\';
echo \'</div>\';
} }
wp_reset_postdata();