在主页上有工作。但在navsidebar中,代码不起作用。标题中的我的代码。php。我想问,如何只获取第一个项目的缩略图,与1移动页面相同
<div class="mb10">
<div class="sidetoplist">
<div class="title"><h3 class="tit">Latest Games</h3></div>
<div class="first"><a href="/subway-surfers-574540.html" class="pic"><img src="http://img.1mobile.com/market/iconv2/36/36542a7ff008ac4ab8440c34b8f02f40-s144.png" alt="Subway Surfers"></a></div>
<ul class="list clearfix" id="topgames">
<?php
$args=数组(\'cat\'=>42,\'posts\\u per\\u page\'=>10,\'orderby\'=>\'date\');//查询$count=1$\\u query=新的WP\\u查询($args);
//Loopwhile($The\\u query->have\\u posts()):$The\\u query->The\\u post();?>
<li><em class="num"><?php echo $count?>.</em><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><b><?php the_title(); ?></b><i><?php
$类别=获取\\u类别();if($categories){$o=“”;$sep=\',\';foreach($c作为$c的类别){if($c->parent==0)continue;$o=$c->cat\\u name。$sep;}echo rtrim($o,$sep);}?>
<?php }
$count++;
endwhile;
//Reset Post Datawp\\u Reset\\u postdata();?>
</ul>
</div>