更新:回避策を見つけました。以下にリストされています。今日からワードプレス初心者です。このループで「the_excerpt」を取得できないようです。最初のものには表示されないか投稿されます。何か案は?
挿入しようとしている一番下に向かっています。
<?
if(!$_GET[id])
{
$args = array( 'numberposts' => '5' );
$recent_posts = wp_get_recent_posts( $args );
start_wp();
foreach( $recent_posts as $recent ) {
set_post_thumbnail_size( 33, 33);
$excerpt = get_the_excerpt();
{ ?>
<table width="100%" cellpadding="0" cellspacing="0" id="blogHolder">
<tr>
<td width="21%" rowspan="2" align="center" valign="middle"><div class="blogImage"><? echo get_the_post_thumbnail($recent["ID"], array(133,133) ); ?></div> <img src="images/blogImageBox.png" width="177" height="177" /></td>
<td width="79%" height="23" valign="middle" class="blogTitle"><? echo $recent["post_title"]; ?></td>
</tr>
<tr>
<td height="24" valign="middle" class="blogTitle"><? echo $excerpt; ?></td>
</tr>
<tr>
</tr>
</table>
<? }
}
}/// End if no ID
?>
更新:回避策を見つけました。
<?
if(!$_GET[id])
{
$posts = get_posts();
foreach ($posts as $post) : start_wp(); ?>
<table width="100%" cellpadding="0" cellspacing="0" id="blogHolder">
<tr>
<td width="21%" rowspan="2" align="center" valign="middle"><div class="blogImage"><? echo get_the_post_thumbnail($recent["ID"], array(133,133) ); ?></div> <img src="images/blogImageBox.png" width="177" height="177" /></td>
<td width="79%" height="23" valign="middle" class="blogTitle"><? echo the_title(); ?></td>
</tr>
<tr>
<td height="24" valign="top" ><blockquote class="blogContent">
<p><? echo the_excerpt(); ?></p>
</blockquote></td>
</tr>
<tr>
</tr>
</table>
<?php
endforeach;
}
?>