我正在尝试生成一个包含行的表,但我这样做的方式似乎是错误的,它只是为每个项目创建一个表。
if ($favorite_post_ids):
$favorite_post_ids = array_reverse($favorite_post_ids);
foreach ($favorite_post_ids as $post_id) {
$p = get_post($post_id);
echo "<table width=\"100%\" border=\"5\">\n";
echo "<tr>\n";
echo "<td>" . get_the_post_thumbnail($post_id, array(55,55), array('class' => 'fav-thumbs')) . "</td>\n";
echo "<td><a href='".get_permalink($post_id)."' title='". $p->post_title ."'><span class='fav-title'>" . $p->post_title . "</span></a></td>\n";
echo "<td>";
wpfp_remove_favorite_link($post_id);
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
请帮忙。