我使用以下代码作为我创建的快捷代码的一部分:
$loop = new WP_Query(array(\'post_type\' => \'client\', \'posts_per_page\' => $limit, \'orderby\' => $orderby));
if($loop){
$preoutput = \'<div class="outer">\';
$postoutput = \'</div>\';
while ($loop->have_posts()){
$loop->the_post();
$output .= \'<div class="box box-\'.$columns.\'"><h2>hello</h2>\'.the_post_thumbnail();
$output .= \'<div class="text"><h2 class="entry-title"><a href="\'.get_permalink().\'">\'.get_the_title().\'</a></h2>\'.get_the_excerpt().\'</div></div>\';
$finaloutput = $preoutput . $output . $postoutput;
}
}
然而,帖子缩略图没有显示在标记中,它只显示在帖子的顶部-为什么会这样做?